Jump to content

Recommended Posts

Posted

I have upgraded our servers to apache and have a question. If I want to run more then one domain on one server how do I configure apache to take the domain to the right folder? If it helps we have our own dns server for the domains.

Posted (edited)

I haven't played much with this but if I'm not mistaken, you must use the <VirtualHost> configuration directive to set that. Something like

><VirtualHost domain.com:80>
   DocumentRoot /home/user/domain.com
   ServerName domain.com
</VirtualHost>

 

I believe the Apache manual has this pretty well covered, so if you have any doubts, you can ask here or look in the manual.

 

 

Moving into a more appropriate forum.

Edited by TCH-Raul

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...