Disable public access

This is a discussion on Disable public access within the Apache Web Server forums, part of the Web Server and Related Forums category; I have setup an Apache using default httpd.conf, however, I only want to access the server via localhost, so ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-04-2008
howa
 
Posts: n/a
Default Disable public access

I have setup an Apache using default httpd.conf, however, I only want
to access the server via localhost, so I modified,


<Directory />

AllowOverride None
Order deny,allow
Deny from all
Satisfy all

</Directory>

<Directory "/var/www/html">

Options Indexes FollowSymLinks
AllowOverride None
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

</Directory>

However, I found that I still can access the server from Internet, any
points I missed?

Thanks.

  #2 (permalink)  
Old 04-05-2008
D. Stussy
 
Posts: n/a
Default Re: Disable public access

"howa" <howachen@gmail.com> wrote in message
news:4c8b1d51-5bb9-435c-9c48-dea6ce2f486b@q10g2000prf.googlegroups.com...
> I have setup an Apache using default httpd.conf, however, I only want
> to access the server via localhost, so I modified,
>
> <Directory />
> AllowOverride None
> Order deny,allow
> Deny from all
> Satisfy all
> </Directory>
>
> <Directory "/var/www/html">
> Options Indexes FollowSymLinks
> AllowOverride None
> Order Deny,Allow
> Deny from all
> Allow from 127.0.0.1
> </Directory>
>
> However, I found that I still can access the server from Internet, any
> points I missed?


What you have done does not shut off access but instead causes pages to be
served as "403" errors, except for 127.0.0.1. You need to use/modify the
LISTEN directive if you don't want apache to respond to other addresses.
Also, where's your firewall?

Secondly: The "satisfy all" and second "order deny,allow" statements are
not necessary based on this snippet. Satisfy might be needed if you have
other resources defined. Also note that you're allowing only on the IPv4
localhost and not the IPv6 localhost.


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:36 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0