I followed a lot of solutions I found, but it still doesn't work. I can access the server by port 80 inside my network, bui I can't on another one, just by another port (like 62, as I set).
Listen localhost:80 Listen *my_ip*:80 Listen *my_ip*:62 ... ServerName *a_free_DNS*:80 ... # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "C:/xampp/htdocs"
# # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks Includes ExecCGI # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Require all granted
<VirtualHost *:80> ServerName *a_free_DNS* DocumentRoot C:/xampp/htdocs/home/ </VirtualHost>
# # New XAMPP security concept # <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))"> # Require local Order deny,allow Allow from localhost Allow from 192.168.0.* ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </LocationMatch>
I put here just what I thought is important and what was modified.
I'm using an Arris router. I set as following:
Description Inbound Port Type Private IP Address Local Port Server 20-81 TCP 192.168.0.123 20-81
Description Outbound Port Type Inbound Port Server 80-80 TCP 62-62
Description Outbound Port Type Inbound Port Server 62-62 TCP 80-80
Description Outbound Port Type Inbound Port Server 20-81 TCP 20-81
I tried disable the router's firewall too. What do I do?