Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: vhost configured for multiple websites |
|
Author |
|
kc119
Joined: 21 Mar 2016 Posts: 2 Location: usa, baton rouge
|
Posted: Mon 21 Mar '16 17:26 Post subject: vhost configured for multiple websites |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 21 Mar '16 17:48 Post subject: |
|
|
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
|
Posted: Mon 21 Mar '16 20:47 Post subject: |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 22 Mar '16 16:45 Post subject: |
|
|
Can you please post an example? thanks! |
|
Back to top |
|
|
|
|
|
|