Andy
Andy

Reputation: 727

Wordpress Apache Vhost Example

I'm trying to install wordpress but i'm confused as to how the Apache Vhost should look.

Ideally i'm after a vhost setup that adds additional security (make sure referrer is correct when doing comments)

I cant seem to find this anywhere (i'm not the best searcher)

Upvotes: 0

Views: 6131

Answers (2)

sstauross
sstauross

Reputation: 2680

This guide for vhosts using mamp will help you with the setup! This saved me a lot of time.

Upvotes: 0

Alex
Alex

Reputation: 14618

It's pretty straight forward

from http://ubuntuforums.org/showthread.php?t=794248:

  • create a new site(vhost) configuration at /etc/apache2/sites-available/ (replace with whatever you want besides default) something like this should work
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /path/to/new/site
ServerName www.example.com
</VirtualHost>
  • enable your new site
sudo a2ensite <site name>
  • restart apache to listen on your new port and load your new site
sudo /etc/init.d/apache2 restart

Upvotes: 4

Related Questions