Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-15-2007, 11:55 AM   #1
LQ Newbie
Registered: Nov 2005
Location: Minnesota
Posts: 5

Rep: Reputation: 0
Unable to connect to virtual host,please help!

i have been at this for more than 2 1/2 hours and it still doesnt work. ive been trying to simply get a virtual host running through apache. i went into /etc/httpd/conf/httpd.conf and made a virtual hosts entry -

<VirtualHost *:80>
DocumentRoot /home/erik/Desktop/website

i made an entry in my dns -

$TTL 86400
@ 0 IN SOA (

1 ; Serial
28800 ; Refresh (8 hours)
14400 ; Retry (4 hours)
604800 ; Expire (1 week)
86400 ; Minimum TTL (1 day)
0 IN MX 10 0 IN A 0 IN A

here is my /etc/hosts - (didnt know if i needed to or not)

# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 Thisismyname localhost.localdomain localhost localhost localhost.localdomain linuxtwo

my iptables are allowing everything -

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

anything else you need to know just ask. whenever i go into a browser and type "" it says unable to connect. i have my index.html in the right folder with file permissions 755 on the folder and the file (if that even matters). Thx.

Last edited by linuxnoob86; 05-15-2007 at 11:59 AM.
Old 05-15-2007, 02:38 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
break it down into seperate parts...

1) ping it. does it resolve correctly? does it ping?
2) if it pings, forget dns, and your issue will be a firewall or apache itself.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to Virtual Host in Apache frankkky Linux - Enterprise 19 11-16-2006 11:31 PM
virtual users and virtual host need to stay at /home nephish Linux - Networking 3 01-14-2006 02:36 PM
Unable to connect to SAMBA host, will retry in 60 seconds. Sloppyunderfoot SUSE / openSUSE 0 10-27-2005 11:36 AM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 02:24 PM
telnet: Unable to connect to remote host: Connection refused batham Linux - Networking 0 07-07-2003 06:29 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration