Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Apache Web Access
#1

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

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

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.

Reply
#4
you can use wildcard. :)
Reply
#5

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

Reply
#6

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

 

 

cheers

 

anyweb

Reply
#7

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

 

z0ny

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)