Jump to content
The Uniform Server Community
Sign in to follow this  
mojito

Server looses home to www

Recommended Posts

My issue for example is that I have

 

<VirtualHost *:80>

ServerName tc.com

DocumentRoot C:/UniServer/www/tc.com/

</VirtualHost>

 

but it ignores the tc.com and doing tc.com goes into www.

 

If I have

www/sitea

www/siteb

 

then the home pages are resolved to www for both sites so the home pages break. I am talking about joomla installs here but see the virtual host has the same issue.

 

What is causing this ?

thanks :)


http://www.landed.at - a travel forum, please come along and post something about a destination you know.

Share this post


Link to post
Share on other sites

When you are using VHosts, then nothing goes under the www folder :)

 

In your example, if tc.com is your main site, then it goes in the root of vhosts:

 

Uniserver/vhosts/tccom/all the tc. com files and folders (e.g. all the Joomla! files and folders)

 

If sitea and siteb are accessed by tc.com/sitea, tc.com/siteb, then these go inside the tccom folder:

 

Uniserver/vhosts/tccom/sitea/all the sitea files and folders

 

If these other two sites are accessed via sitea.com and siteb.com, then they also go in the root of vhosts and your vhosts folder would look like:

 

Uniserver/vhosts/tccom

Uniserver/vhosts/sitea

Uniserver/vhosts/siteb

 

Cheers!

Lyle


GeneratePress / Elementor / WP Show Posts / Do It Yourself WordPress - Sniffle Valve

 

You want a WordPress website and you want it now - GOOD CHEAP FAST WEBSITES

 

Don't take life too seriously ... nobody has ever gotten out of it alive :)

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...