commandercup wrote:My ISP globally blocks port 80 (to stop them from getting way too much bandwith usage) so I want to run on port 27015 (which has worked for me with game servers) where do i put the "listen 27015" command?
In the Apache httpd configuration file:
xampp\apache\conf\httpd.conf
Find this and change
Listen 80 to
Listen 27015:
- Code: Select all
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80
This would apply for access from your URL:
http://yourdomain.com:27015or your IP:
http://xxx.xxx.xxx.xxx:27015However you can still access localhost on port 80 as it is not affected by your ISP.
http://localhostor
http://127.0.0.1If you wanted to change the listening port for the localhost also then find this part and change the 80 to 27015
- Code: Select all
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80