You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by spacemarc <sp...@gmail.com> on 2006/11/26 12:29:08 UTC

[users@httpd] Deny Apache from external connections

Hi,
how can I deny external connections except from my localhost/127.0.0.1?
On Ubuntu Linux and Apache 2.0.55.
Thanks


-- 
http://www.spacemarc.it

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Deny Apache from external connections

Posted by Joshua Slive <jo...@slive.ca>.
On 11/26/06, spacemarc <sp...@gmail.com> wrote:
> Hi,
> how can I deny external connections except from my localhost/127.0.0.1?
> On Ubuntu Linux and Apache 2.0.55.

See the docs for mod_access.

For example:
<Location />
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Apache 2 suexec pam authentication

Posted by "Oleg R." <ol...@molddata.md>.
Hello! I am trying to enable suexec for apache 2 to read the authentication 
data from a mysql database. Sure i could have my users in /etc/passwd but it 
is nicer when they are in mysql, no problems when i have to upgrade the 
server. So anyone solved this problem, i searched everywhere about apache2 
pam and mysql and nothing. It seems that apache 2 does not work with PAM? I 
believe i found a page where someone was talking that apache 2 have no 
support for PAM..is this true?? Any clue, hints, link related 2 the problem 
are highly appreciated!! Than you for your time.


Oleg R. 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] problem about directory with accents since Apache 2.2.3

Posted by Skrol29 <sk...@freesurf.fr>.
I have Apache 2.2.3 on Windows XP sp2.

With Apache 1.3.33 there was no problem to define in "httpd.conf" an alias 
for a directory that have accents in his name.

The following entries was valid:
*****************
Alias /dev "E:/dév/"
<Directory "E:/dév">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
*****************

Now with Apache 2.2.3, the same enties make the Apache server to not start.
You have to code it in UTF-8 instead :
*****************
Alias /dev "E:/dév/"
<Directory "E:/dév">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
*****************

This way the alias is correct and HTML files can be normally accessed with 
the URL
  http://localhost/dev/hello.html
But it doesn't work with PHP script because "E:/dév/" is not a correct path 
for PHP.
When you try to call any script in the aliased directory
  http://localhost/dev/myscript.php
you have an error:
*****************
Warning (E:/Dév/myscript.php) failed to open stream: No such file or 
directory in Unknown on line 0
*****************

Do you know if there is a way to make Apache or the Alias module to deals 
with accents the same way it used to with Apache 1.3.x ?
Is this can be considered as a bug ?

-------------------
Skrol29
www.tinybutstrong.com
www.skrol29.com
------------------- 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Deny Apache from external connections

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 26.11.06 16:48, spacemarc wrote:
> 2006/11/26, Matus UHLAR - fantomas <uh...@fantomas.sk>:
> >the easiest way is to configure apache only to run on localhost, e.g.
> >comment all Listen directives, and leaving only
> >
> >Listen 127.0.0.1:80
> >
> >(and 127.0.0.1:443, if you want SSL)
> 
> I don't have this parameter in my /etc/apache2/apache2.conf: where I
> must to add it?

anywhere in /etc/apache/ ? some linux distributions split config files to
many pieces...

> At moment, I have applied the suggestion of Joshua Silve and it works.

it works, it will receive input from any addressess and rell "not allowed"
to anyone except localhost
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Posli tento mail 100 svojim znamim - nech vidia aky si idiot
Send this email to 100 your friends - let them see what an idiot you are

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Deny Apache from external connections

Posted by spacemarc <sp...@gmail.com>.
2006/11/26, Matus UHLAR - fantomas <uh...@fantomas.sk>:
> the easiest way is to configure apache only to run on localhost, e.g.
> comment all Listen directives, and leaving only
>
> Listen 127.0.0.1:80
>
> (and 127.0.0.1:443, if you want SSL)

I don't have this parameter in my /etc/apache2/apache2.conf: where I
must to add it?

At moment, I have applied the suggestion of Joshua Silve and it works.

-- 
http://www.spacemarc.it

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Deny Apache from external connections

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 26.11.06 12:29, spacemarc wrote:
> how can I deny external connections except from my localhost/127.0.0.1?
> On Ubuntu Linux and Apache 2.0.55.

the easiest way is to configure apache only to run on localhost, e.g.
comment all Listen directives, and leaving only

Listen 127.0.0.1:80

(and 127.0.0.1:443, if you want SSL)

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I don't have lysdexia. The Dog wouldn't allow that.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org