My OS: CentOS 7
Server: Apache
Equipment: Sterlite SAM 300AX
Okay so I'm trying to set up my server on my home connection, and been having some problems. I have been allotted a static WAN IP by my ISP. I have two computers, one is the server and other is a home PC behind a modem-cum-router.
Currently when I go to my WAN IP (either myself or from a public proxy) I land on my modem login page.
I wonder if its a problem with ports or something. Or is it the host/hosts/httpd.conf setting on my apache or mix of other things. Perhaps its the firewall issue?
My /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.13 server.mysite.com
My httpd.conf
ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin localhost@root
ServerName server.mysite.com
</Default Stuff>
IncludeOptional conf.d/* .conf
IncludeOptional sites-enabled/* .conf
My vhost.conf
<VirtualHost 192.168.1.13:80>
ServerName www.mysite.com
ServerAlias mysite.com
DocumentRoot /var/www/html/
ErrorLog /var/www/error.log
CustomLog /var/www/requests.log combined
</VirtualHost>
In my Router, under NAT I added the following:
1 HTTP_Server TCP 80 80 192.168.1.13