Linux-Noob Forums
Apache Web Access - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Server Administration (https://www.linux-noob.com/forums/forum-8.html)
+--- Forum: LAMP (https://www.linux-noob.com/forums/forum-83.html)
+--- Thread: Apache Web Access (/thread-3921.html)



Apache Web Access - kZo - 2003-12-17


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? :)




Apache Web Access - Oroshi - 2003-12-17

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



Apache Web Access - kZo - 2003-12-17


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.




Apache Web Access - Oroshi - 2003-12-17

you can use wildcard. :)



Apache Web Access - bigbong - 2004-08-23


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




Apache Web Access - anyweb - 2004-08-23


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

 

 

cheers

 

anyweb




Apache Web Access - z0ny - 2004-08-23


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

 

z0ny