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

Linking VirtualHost to a Real Domain (Windows Server 2019) (1 reply)

$
0
0
Good afternoon, please advise how to correctly link VirtualHost to a real domain name so that the project can be accessed from the internet. When debugging locally everything works, but I need it to work from outside.

Settings httpd-vhosts.conf:
<VirtualHost *:80>
ServerName localhost
DocumentRoot "c:/wamp64/www"
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName asu.sfnuvs.sumy.ua
ServerAlias www.asu.sfnuvs.sumy.ua
DocumentRoot "c:/mkr/frontend/web"
<Directory "c:/mkr/frontend/web/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

On the local machine, everything works when making changes to the Hosts file, but there is no access from the Internet. If I understand correctly, the Hosts file is not needed when binding to a real domain. But when I remove an entry from this file, Wamp says that this host is not defined

Viewing all articles
Browse latest Browse all 3177

Trending Articles