Posted by:
RiggsFolly
(---.dynamic.dsl.as9105.com)
Ok,
You have not told Apache that it is allowed to be connected to from anywhere other than the local machine as all you have said is "Require local"
So change this host definition to allow access from the internet
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/stuysmile"
ServerName stuysmile
<Directory "c:/wamp/www/stuysmile">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
However using the domain name `stuysmile` will probably not work when used from outside of your network `stuysmile` is not a valid domain name and DNS Servers will not know anything about it.
If you use your WAN IP Address Apache will attempt to connect you to the default domain which is always the first one in the httpd-vhosts.conf file, so localhost, and that will of course be rejected as it is only allowed to be connected to by the local machine "Require local"
You would be best advised to either buy a real domain name or geta Dynamic Domain name fro somewhere like NO_IP or DYNDNS and then change the Virtual Host defeinitions to
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/stuysmile"
ServerName stuysmile.dyndsn.net
<Directory "c:/wamp/www/stuysmile">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
"stuysmile.dyndsn.net` is an example only, there are various options available but that is up to you to pick one.
One way of testing things would be to change the order of your definitions, this would make use of the way Apache picks the default VH if a match cannot be found like this
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/stuysmile"
ServerName stuysmile
<Directory "c:/wamp/www/stuysmile">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>
---------------------------------------------------------------------------------------------
(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-