Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

What url to type in browser

Post new topic   Reply to topic    Apache Forum Index -> Apache

View previous topic :: View next topic  
Author Message

Joined: 12 Jan 2018
Posts: 1
Location: US, Atlanta

PostPosted: Fri 12 Jan '18 19:33    Post subject: What url to type in browser Reply with quote

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


# # Fools Or Knaves

<VirtualHost *:80>

ServerName FoolsOrKnaves.com

DocumentRoot /var/www/vhosts/FOK-Website


# # DunawayGroupLLC

<VirtualHost *:80>

ServerName DunawayGroupLLC.com

DocumentRoot /var/www/vhosts/DGL-Website
Back to top

Joined: 27 Jun 2016
Posts: 69
Location: Schömberg, Baden-Württemberg, Germany

PostPosted: Sat 13 Jan '18 18:23    Post subject: Reply with quote

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

Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1