I have a working Redmine installation on my Debian server, but I don't know how to configure Apache2 properly so that neither the content of the Redmine folder nor the Redmine start page will be displayed as the homepage of my website. Suppose the URL of the website was www.myexample.com.
Current state
- www.myexample.com shows files of
/var/www/redmine
folder - with the symbolic link
/var/www/redmine -> /usr/local/lib/redmine-2.1/public/
Wanted state
- www.myexample.com should be my usual website homepage (e.g. showing index.html)
- www.redmine.myexample.com or www.myexample.com/redmine should show the redmine page
I guess it is just a configuration problem but I cannot figure out the problem. So here are my configuration files. Do you see what I am missing here?
/etc/apache2/httpd.conf
<VirtualHost *:80> ServerName redmine.example.com DocumentRoot /var/www <Directory /var/www> AllowOverride all Options -MultiViews </Directory> </VirtualHost>
/etc/apache2/sites-available/redmine
<VirtualHost *:80> DocumentRoot /var/www/redmine <Directory /var/www/redmine> AllowOverride all Options -MultiViews RailsBaseURI /redmine </Directory> </VirtualHost>
/etc/apache2/sites-available/default
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
After changing any of these files, do I have to restart Apache2 or use a2ensite to activate any of the hosts?