0
Basically, I can access everything just fine using 127.0.0.1, but if I use my external IP (123.123.123.123), I get page not found.
My router is port forwarding HTTP port 80 to port 8080 on my servers internal IP address. In other words: (Application: HTTP | Start: 80 | End: 8080 | Protocol: Both | IP Address 192.168.0.101 | Enable [YES]) I know it's forwarding properly, because when I stop port forwarding, I can access my router page by using my external IP.
My virtual hosts file is:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /opt/lampstack-5.3.16-0/apps/wordpress
ServerName example.com
ServerAlias www.example.com
</VirtualHost>
and my httpd.conf file is:
Listen 80
Servername localhost:80
DocumentRoot "/opt/lampstack-5.3.16-0/apache2/htdocs
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny, allow
deny from all
</Directory>
<Directory "/opt/lampstack-5.3.16-0/apache2/htdocs">
Options FollowSymLinks
AllowOverride None
Order allow, deny
allow from all
</Directory>
Can you access it locally, from another computer on your network? – Tanner Faulkner – 2012-09-26T01:23:12.643
If I use my other computer in my network and type in 127.0.0.1, I get page not found. BTW, I have "Filter Internet NAT Redirection" unchecked in my router settings. But it doesn't make a difference if I turn it on or off. – piratepartypumpkin – 2012-09-26T01:26:57.807
well you would type
http://192.168.0.101/
from another computer on your network, 127.0.0.1 always refers to the local machine. – Luke – 2012-09-26T01:37:16.627Thanks Luke, I tried it with NAT Redirection on and off and 192.168.0.101 give me a page not found both times. – piratepartypumpkin – 2012-09-26T01:39:00.993
Have you checked to see what your apache error log is saying? Look for
ErrorLog
in your httpd.conf to find where it is. – Luke – 2012-09-26T02:39:10.510