Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17903

CentOS 6.4 HTTPD VirtualHosts

$
0
0

When I access the server via the internal IP, I can get it to pull up the index page. But when I try to access it via my domain name, or my public IP (my router is forwarding all requests on port 80 to the server) I get nothing. I am trying to configure virtual hosts properly the first time so if I get another domain I don't have to reconfigure everything. I am pretty sure my issue lies within my virtual hosts configuration. I am not really sure what each portion of the config actually does, and I can't find any resources, if someone knows a good resource can they link it for me?

Anyways, here is my virtual hosts config file. Please tell me what I am doing wrong.

Listen *:80

NameVirtualHost *:80

<VirtualHost *:80>

 ServerAdmin Myemail DocumentRoot "/var/www/html/ahaggerty" ServerName ahaggerty.com ServerAlias www.ahaggerty.com 

</VirtualHost>

Any help would be appreciated.

Edit:formatting

Edit 2: Thanks for the help everyone! After deleting and remaking the port forwarding rule on my craptastic linksys router it works now. Sorry for wasting your time.

submitted by haggeant
[link][14 comments]

Viewing all articles
Browse latest Browse all 17903

Trending Articles