Linux-Noob Forums

Full Version: Apache Web Access
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I need to keep port 80 forwarded to my server. However, I do not want people from outside my LAN to view certain parts of the webpage.

 

For instance:

 

I would like my LAN 172.31.x.x to view all pages on [/url]http://myserver/*

 

But:

 

I don't want my WAN x.x.x.x to view all pages, just like [url=http://myserver/wan/*]http://myserver/wan/*

 

any suggestions? :)

you will need to add the Virtual Host, and forward from IP. to specifi locate you want.

What I went ahead and did was allowed .htaccess

 

My .htaccess file shows this

 



Code:
order allow,deny
allow from 172.31.
deny from all




 

I do believe this will fix my problems. I just can't test it out.

you can use wildcard. :)

I'm getting this error when I try to start apache

 

[root@inferno apache_1.3.31]# PREFIX/bin/apachectl start

[sun Aug 22 19:11:03 2004] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

fopen: No such file or directory

httpd: could not open error log file PREFIX/PREFIX/logs/error_log.

PREFIX/bin/apachectl start: httpd could not be started


sounds like your httpd.conf file is not configured, paste it here please

 

 

cheers

 

anyweb


And don't reply to every apache topic please. Just open an own thread... [img]<___base_url___>/uploads/emoticons/default_ph34r.png[/img]

 

z0ny