I am having a similar issue. I can access my newly hosted website (
www.thisismysite.com) by using any other computer on my network and can even access it the website from school and through an anonymizer...however, I cannot seem to access
www.thisismysite.com from the computer that is serving the pages other than
http://localhost/htdocs/thisismysite/htdocs. Any suggestions?
Here is my VirtualHost snippet:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost:80
DocumentRoot "Z:/XAMPP/apachefriends/xampp/htdocs"
<Directory "Z:/XAMPP/apachefriends/xampp/htdocs">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName thisismysite.com:80
ServerAlias thisismysite.com *.thisismysite.com
ErrorLog Z:/XAMPP/apachefriends/xampp/htdocs/thisismysite/logs/thisismysite-error_log
CustomLog Z:/XAMPP/apachefriends/xampp/htdocs/thisismysite/logs/thisismysite-access_log common
DocumentRoot "Z:/XAMPP/apachefriends/xampp/htdocs/thisismysite/htdocs"
<Directory "Z:/XAMPP/apachefriends/xampp/htdocs/thisismysite/htdocs">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
Obviously thisismysite and thisismysite.com are just dummy references to my actual site. It's just so strange that I can view the site from any other computer...on the network or off. I am able to access
http://127.0.0.1 no problem. However, if I type my IP address for the server into a browser on the server (ex.
http://123.34.45.56) that doesn't even work...but the same IP address on any other computer loads the site no problem (or in this case, the root htdocs index.php (I removed the XAMPP stuff from the root htdocs). Any help would be appreciated. Thanks!