I've been battling to get a vhost config working on an internal development server at work. I have found other vhost configs in the site-available directory. For some reason, I can't see why my new vhost is not responding to any requests. All i get is a 404 statement. This is not a publicly access server so I'm not sure if that has anything to do with this. Also if I purposely add a syntactic error in my config.. apache yells at me so I know it actually being loaded. I have restarted the apache server multiple times. I don't know if it has to do with the servername at all. I just want to type in 192.168.254.35/rackapp and have apache drop me in the DocumentRoot i have chosen. Currently i can do 192.168..254.35/rack_example/public.
- Where else should I be editing to make this work?
This is what I am trying to load
<VirtualHost *>
ServerName rackapp
ServerAdmin atomphson@abc.com
DocumentRoot /var/www/rack_example/
</VirtualHost>
This config works without problem
<VirtualHost *>
ServerName collab
ServerAdmin ason@abc.com
DocumentRoot /var/www/collab/
ErrorLog /var/log/apache2/colab-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/collab-access.log combined
</VirtualHost>