[SOLVED] WP subdomains, What to add to httpd-vhost.config ?
Posted: 27. January 2014 11:59
Hi,
I run a few single wordpress installs on my localhost and trying to create a wpms site but when trying to add subdomain to my wpms site I run into problems.
I've found a few sites providing very good how to info, however, I spent all the weekend trying to get this to work but no luck! Apache won't start, this is the last info I followed:
http://www.codingcereal.com/2011/05/set ... ing-xampp/
I added the following to httpd-vhost.config, when restarting Apache it wont start. If I remove this code from the file, Apache starts up just fine and I can access my single installs. Seems as all other settings is ok?
I wonder what it is I am doing wrong and what I need to do to get access to the subdomain?
Does it matter if I add the code to the httpd-vhost.config after I created the sub or should I add the code first and then create the sub?
I run a few single wordpress installs on my localhost and trying to create a wpms site but when trying to add subdomain to my wpms site I run into problems.
I've found a few sites providing very good how to info, however, I spent all the weekend trying to get this to work but no luck! Apache won't start, this is the last info I followed:
http://www.codingcereal.com/2011/05/set ... ing-xampp/
I added the following to httpd-vhost.config, when restarting Apache it wont start. If I remove this code from the file, Apache starts up just fine and I can access my single installs. Seems as all other settings is ok?
- Code: Select all
<VirtualHost *:80>
DocumentRoot “C:/xampp/htdocs/mysite.com”
ServerName subname.mysite.com
</VirtualHost>
I wonder what it is I am doing wrong and what I need to do to get access to the subdomain?
Does it matter if I add the code to the httpd-vhost.config after I created the sub or should I add the code first and then create the sub?