Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Hosting multple domains and test site (no replies)

$
0
0
Hello

I need some help expanding my wamp setup..


I got 2 websites running with my own domains, but I need a new site with domain and make a test site without a domain attached..

I've edited my host file to:

# Virtual Hosts
#

# mysite.dk:

<VirtualHost *:80>
ServerName mysite.dk
ServerAlias *.mysite.dk mysite.dk
DocumentRoot c:/wamp64/www/mysite
<Directory "c:/wamp64/www/mysite/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

# mydomain.com:

<VirtualHost *:80>
ServerName mydomain.com
ServerAlias *.mydomain mydomain
DocumentRoot c:/wamp64/www/mydomain
<Directory "c:/wamp64/www/mydomain/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#

It works perfectly with my wordpress installs, but if I want to add a test site without domain, how does that look like?

I tried adding this:

# localhost/vestre:

<VirtualHost *:80>
ServerName 144.76.80.138
ServerAlias *.144.76.80.138
DocumentRoot c:/wamp64/www/vestre
<Directory "c:/wamp64/www/vestre/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#

This works on the server, when I go to http:://server-ip

But if I try on a remote machine I get the first website(mysite.dk) displayed

So how do i setup this, so I can access the page with example "http:://server-ip/vestre"


Last question if I need to add a new site with a domain.. The only thing I need to do is copy one of the existing vhost entries and change the domain and folder.. Nothing else is need to setup a new webpage right?


Sorry I don't remember how I manged to get this working a year ago..


Thank you..

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>