Default DocumentRoot directory redirects to a VirtualHost

3 posts / 0 new
Last post
#1 Sat, 10/13/2012 - 16:15
kunus

Default DocumentRoot directory redirects to a VirtualHost

Hello

When I try to access DocumentRoot it redirects to one of my VirtualHosts, I can't see contents in /var/www/html.

How can I make this work?

Really Thanks

Sun, 10/14/2012 - 21:37
andreychek

Howdy,

Virtualmin places domains within /home.

If you have any content that you'd like to use, my recommendation would be to setup a Virtual Server for that, and then to place the content for it within the directory Virtualmin creates in /home/USERNAME/public_html.

-Eric

Mon, 10/15/2012 - 00:22
Joe
Joe's picture

Note that this is an Apache behavior, not really related to Virtualmin...except in the sense that Virtualmin manages Apache VirtualHosts. Apache can either serve VirtualHosts or you can have a single DocumentRoot without any VirtualHosts defined. You can't have both. If you have even one VirtualHost defined, Apache goes into virtual hosting mode...if you want anything in /var/www/html to be shown, you'll have to create a VirtualHost that points to that directory.

Or, you can do as Eric suggested, and use Virtualmin to create all of your sites, and put the content you want into one of those sites (in /home).

--

Check out the forum guidelines!

Topic locked