Iptables problem with allowing http
Claude Jones
claude_jones at levitjames.com
Tue Mar 15 16:10:10 UTC 2005
Mark Weaver wrote:
> Claude Jones wrote:
>> If I put http://localhost in my browser, my lone webpage pops up. It
>> wouldn't do this if httpd weren't running, no?
>>
>
> that is correct. check in your httpd.conf file to see what IP address
> Apache is listening on.
>
> on my web server this part of my config appears thusly (line 132-133):
>
> #Listen 12.34.56.78:80
> Listen 80
>
> I've got a static external IP address and the web server sits behind a
> firewall/gateway machine so all my virtualhost containers appear like this:
>
> <VirtualHost 192.168.0.4:80>
> ...
> </VirtualHost>
>
> If you're not using VirtualHost containers then your Directory
> containers would appear something like this:
>
> <Directory "/var/www/html/some_directory_name">
> AllowOverride All
> Options ExecCGI # if you intend to use PERL scripts
> Order allow,deny
> Allow from all
> </Directory>
>
> Still not able to get to your web host using the IP address? The next
> place I'd look is your host file: /etc/hosts
>
> You've probably already, or should have, this entry in there:
>
> # standard localhost entry
> 127.0.0.1 localhost.localdomain localhost.localdomain
> # try placing this entry in the hosts file as well
> # the entry should be your external IP address or the IP address
> # you've assigned to your machine with the web service running on it
> xxx.xxx.xxx.xxx hostname hostname_alias
> # EXAMPLE:
> # 192.168.0.10 myhostname myhost
> # OR
> # 56.236.211.100 claudehome.net claudehome.net
>
Thanks, Mark, and thanks to Yang for his previous suggestion. I am at
work, now, so I'll have to try these suggestions when I get home tonight.
--
Claude Jones
Bluemont, VA, USA
More information about the fedora-list
mailing list