Thursday, November 22, 2007
misc internet dev config
- apache configuration:
1) edit /etc/apache2/httpd.conf
2) to change document root location for instance, add
<virtualhost>
DocumentRoot /my/path/to/root
</virtualhost>
If you set the DocumentRoot outside the node, it has no effect
- Apache errors are logged into /var/log/apache2/error.log
- If you need to load a module, run "sudo a2enmod youmodulename"
ex: "sudo a2enmod rewrite" to load the rewrite_url module (it adds a load link into /etc/apache2/mods-enabled)
then you can use in your .htaccess file the RewriteEngine instruction.
This page was of great help
Don't forget to restart your server (sudo /etc/init.d/apache2 restart)
1) edit /etc/apache2/httpd.conf
2) to change document root location for instance, add
<virtualhost>
DocumentRoot /my/path/to/root
</virtualhost>
If you set the DocumentRoot outside the
- Apache errors are logged into /var/log/apache2/error.log
- If you need to load a module, run "sudo a2enmod youmodulename"
ex: "sudo a2enmod rewrite" to load the rewrite_url module (it adds a load link into /etc/apache2/mods-enabled)
then you can use in your .htaccess file the RewriteEngine instruction.
This page was of great help
Don't forget to restart your server (sudo /etc/init.d/apache2 restart)