logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: vhost configured for multiple websites
Author
kc119



Joined: 21 Mar 2016
Posts: 2
Location: usa, baton rouge

PostPosted: Mon 21 Mar '16 17:26    Post subject: vhost configured for multiple websites Reply with quote

Hey guys,

I'm just looking for confirmation/approval that I've configured my vhost appropriately and securely.

There will be multiple wordpress websites on this server

Code:
<VirtualHost *:80>
    <Directory "E:/www/site">
        Options Indexes FollowSymLinks
        AllowOverride All
    </Directory>
    ServerAdmin mycoolalias@email.com
    DocumentRoot "E:/www/site
    ServerName site.com
    ServerAlias www.site.com
    ErrorLog "logs/siteerror.log"
</VirtualHost>
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Mon 21 Mar '16 17:48    Post subject: Reply with quote

You need to add the Require parameter to directory block.

e.g.

Code:
Require all granted
Back to top
kc119



Joined: 21 Mar 2016
Posts: 2
Location: usa, baton rouge

PostPosted: Mon 21 Mar '16 20:47    Post subject: Reply with quote

Thanks, that helped, troubleshooting another error.

Whenever I add the additional vhosts it's telling me the number of <directory> is not equal to the number of ServerName


But I thought the <directory> should only have one since all my sites are in the root dir
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Tue 22 Mar '16 16:45    Post subject: Reply with quote

Can you please post an example? thanks!
Back to top


Reply to topic   Topic: vhost configured for multiple websites View previous topic :: View next topic
Post new topic   Forum Index -> Apache