Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I did find some documentation that mentioned, "Any request that doesn't match an existing <VirtualHost> is handled by the global server configuration, regardless of the hostname or ServerName" (http://httpd.apache.org/docs/current...ame-based.html). So I decided to do a search on "global server configuration", and it seems that in previous versions of Apache for Ubuntu (and still in other distros), the main configuration file is /etc/apache2/httpd.conf instead of /etc/apache2/apache2.conf.
- And there is a Document Root section in that ../httpd.conf file. So, I did some experimenting, and it seems that you can still set this through adding
- Code:
- DocumentRoot /your/preferred/directory
- to either /etc/apache2/apache2.conf or /etc/apache2/ports.conf.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement