Click to See Complete Forum and Search --> : Red Hat 8.0 apache webserver behind firewall + router


chpacabrah
10-15-2002, 05:19 PM
ok, what in the crap.

I installed apache, php, and mysql off of the rh8 cds.

I can open linuxconf and configure some stuff.

but i dont know what to do, really. my firewall and/or router block access to the machine, and i dont know how to set it to allow for it (help 1)

2), if i can get that info, i can probably figure the rest out, unless there are pointers you wish to offer. (there's the nhf, and google always :-) )

(the nhf called for the downloading and compilation of the things, whereas i just used the cds. i have the items downloaded too, if that would be better just say so)

chpacabrah
10-16-2002, 08:30 AM
so yeah. anyway,

I went to the start menu, and I clicked security level under system settings. i open it up and it says "security level: high" so i changed it to medium (which is what i set it to during installation), and i set it to allow incoming www(http) and ftp, and to allow port 80:tcp . is this right so far?

i also went into my linksys router configuration thing and set it to forward port 80.

i used the red hat apache configuration tool to set it up, pretty much all default. (root dir. /var/www/html)

so i opened mozilla and did http://localhost:80, and piyow, there's my / directory. so what the crap. i went back to the apache tool, and set the root dir to my other hard drive, and then localhost:80 didnt work (connection refused). i changed it back to /var/ww/html, and connection still refused.

what is going on? what am I doing wrong?

-----------------------------
apache configuration:

server name: factorQ
webmaster email address root@localhost
all available addresses on port 80
default virtual host (on port 80)
virtual host name: default virtual host
doc root dir: /var/www/html
webmaster email address: jon@factorq.net
host info: default virtual host
all requests on port 80
lock file /var/lock/httpd.lock
pid file /var/run/httpd.pid
core dump dir: /etc/httpd
user: apache
group: apache
servers: max num of connections: 150
max requests per connection 100

miteycasey
10-16-2002, 12:24 PM
You might have a permissions problem on the file you are trying to read. Be sure that there is a index.html file in the directory.

michaelk
10-16-2002, 02:46 PM
Have you verified that apache service is running? Are trying to access the webserver from the linux PC or another local PC. If from another local PC then the firewall maybe still blocking port 80.

chpacabrah
10-16-2002, 03:50 PM
you were right, haha, i didnt have it running. but now it is running, and it just gives me a forbidden error.

how do i get it to not say that?

i do http://localhost:80/ and it gives me the forbidden page, but it takes the :80 off the url.

i am accessing it from my current computer which the daemon is on