Hi,
I redirect a given dns; www.abc.com to my ip via for example one.com
The request is forwarded to my server that holds wamp-installation.
is it the vhosts file where servername (www.abc.com) that redirects this request to the proper folder & website?Yes
If i had another url (www.123.com) pointed at the same ip address, with the corresponding servername in vhosts, this is how the wamp-server would know where to forward the requests?
Also YES
However there are a few things I think I should add:
1. You will have to set up "port forwarding" for port 80 on your router.
This allows unsolicited connections to pass through your routers NAT (Network Address Translation) and for these connections to be "forwarded" to a specific PC (ip address) inside your private network i.e. the PC running WAMPServer(Apache)
Without the forwarding on the router unsolicited connections are blocked by NAT, you can consider it a hardware firewall, and opening port 80 will add an attack vector to your network, which you would be surprised at how quickly will be found by the bad guys.
So you have been warned and you are then responsible for taking any and all additional steps to secure your network/Apache/mysql/etc
2. Using a Windows Desktop OS i.e. not a Windows Server OS will also limit the usefulness of hosting your site on your local PC and also means you have to leave it on all the time.
This is fine for showing a few friends or demoing a site to a client BUT...
Windows Desktop OS's have a limit to the number of external connections they will allow at any one time. Windows 10 = 30
Bearing in mind that Windows itself permanatly uses some of these 30 connection lets say the limit is reduced to 20 external connections.
This will make your site react very poorly to multiple simultaneous connection giving a very bad user experience.
Also consider that one user connection i.e. one browser, will attempt to make use of at least 2 connections and maybe more, to quickly attempt to download page artifacts like CSS/Javascripts/Images as it comes across them in your HTML you are limited to no more than 7-10 users of your sote at any one time.
---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-
Edited 1 time(s). Last edit at 01/11/2018 02:04PM by RiggsFolly.