Rewrite rule if condition is not matched

How may I perform a rule if the URL is NOT matching the path “forums”? For example: RewriteCond IF URL IS NOT forums RewriteRule !\.(js|gif|css|jpg|png)$ %{DOCUMENT_ROOT}/index.php [L] Answer Apache’s RewriteCond as well as the RewriteRule directive support the exclamation mark to specify a non-matching pattern: You can prefix the pattern string with a ‘!’ character … Read more

apache directory listing, download all

Is there any Windows tool or some way to download all the folders and files recursively from apache directory listing? sample folder Thanks Answer wget for windows (or http://gnuwin32.sourceforge.net/packages/wget.htm) Once installed it’s as simple as: – wget -m -np http://eamos.pf.jcu.cz/amos/kat_inf/externi/ The -m is an alias for –mirror. As a commenter noted, you probably want -np … Read more

ImportError: No module named django.core.wsgi Apache + VirtualEnv + AWS + WSGI

I am trying to publish my site on an Amazon’s EC2 Instance, and I keep getting a 500 error. I really don’t know why. //Log Files [Sun Feb 17 23:12:48.066802 2013] mod_wsgi (pid=2102): Target WSGI script ‘/srv/www/app/poka/apache/wsgi.py’ cannot be loaded as Python module. [Sun Feb 17 23:12:48.066840 2013] mod_wsgi (pid=2102): Exception occurred processing WSGI script … Read more