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: What url to type in browser |
|
Author |
|
LesAtDGL
Joined: 12 Jan 2018 Posts: 1 Location: US, Atlanta
|
Posted: Fri 12 Jan '18 19:33 Post subject: What url to type in browser |
|
|
I have Apache 2.4.7 (Amazon) running in a Lightsail instance with vhost - three websites
I have not moved the DNS - yet, just testing
All is well in that when I type the static ip of the server, I get the first entry in /etc/httpd/conf.d/vhost.conf - and I've tried moving each of the three to the top - they all work OK
What do I type in the browser to get the others?
I've tried <static ip>/Domain name
Here's vhost.conf
#
# # Wealth Your Decision
#
<VirtualHost *:80>
ServerName WealthYourDecision.com
DocumentRoot /var/www/vhosts/WYD-Website
</VirtualHost>
#
# # Fools Or Knaves
#
<VirtualHost *:80>
ServerName FoolsOrKnaves.com
DocumentRoot /var/www/vhosts/FOK-Website
</VirtualHost>
#
# # DunawayGroupLLC
#
<VirtualHost *:80>
ServerName DunawayGroupLLC.com
DocumentRoot /var/www/vhosts/DGL-Website |
|
Back to top |
|
mraddi
Joined: 27 Jun 2016 Posts: 152 Location: Schömberg, Baden-Württemberg, Germany
|
Posted: Sat 13 Jan '18 18:23 Post subject: |
|
|
The key-point is that the webserver decides which virtual host to use based on the Host-header within the client's request.
Two possible solutions for testing:
1) You may edit your client's hosts-file and add entries for all three virtual-hosts your new server should server pointing to the new webserver.
Then you can use exactly these hostnames within your browser.
After successful testing you should remove the entries from your hosts-file.
2) Or you can use some browser-plugin to add/modify the Host-header your browser is sending to the webserver. |
|
Back to top |
|
|
|
|
|
|