|
|
Apache 2, allow from localhost
Hi,
After moving a site (in development) from /var/www to ~/public_html I
am no longer allowed to access it (without loggin in). The
authentication section in .htaccess looks like this:
AuthType Basic
AuthName "Please log in"
AuthUserFile <xxx>
Order deny,allow
Deny from all
Allow from 127.0.0.1 10.0.1
Require valid-user
Satisfy any
If I replace the Allow directive with
Allow from 127.0.0.0/255.0.0.0 ::1/128
(copied from /etc/apache2/sites-available/default) I can access the
site but then I get an internal server error after having uploaded the
site to my web hosting account.
Any ideas?
Regards,
August
|
|
0
|
|
|
|
Reply
|
fusionfile (190)
|
11/8/2009 3:20:11 PM |
|
On Nov 8, 8:20=A0pm, augustk <fusionf...@gmail.com> wrote:
> Hi,
>
> After moving a site (in development) from /var/www to ~/public_html I
> am no longer allowed to access it (without loggin in). The
> authentication section in .htaccess looks like this:
>
> AuthType Basic
> AuthName "Please log in"
> AuthUserFile <xxx>
> Order deny,allow
> Deny from all
> Allow from 127.0.0.1 10.0.1
> Require valid-user
> Satisfy any
>
> If I replace the Allow directive with
>
> Allow from 127.0.0.0/255.0.0.0 ::1/128
>
> (copied from /etc/apache2/sites-available/default) I can access the
> site but then I get an internal server error after having uploaded the
> site to my web hosting account.
>
> Any ideas?
>
> Regards,
>
> August
Paste the apache logs here...when you access the site..
|
|
0
|
|
|
|
Reply
|
Don
|
11/11/2009 1:57:54 PM
|
|
Don wrote:
> Paste the apache logs here...when you access the site..
OK, with the configuration
AuthType Basic
AuthName "Please log in"
AuthUserFile xxx
Order deny,allow
Deny from all
Allow from 127.0.0.1 10.0.1
Require valid-user
Satisfy any
the following line is written to /var/log/apache2/access.log when the
login dialog is displayed (on localhost):
::1 - - [13/Nov/2009:10:23:19 +0100] "GET /~august/test/ HTTP/1.1" 401
365 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15)
Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15"
Nothing is written to /var/log/apache2/error.log.
/August
|
|
0
|
|
|
|
Reply
|
August
|
11/13/2009 9:30:29 AM
|
|
|
2 Replies
301 Views
(page loaded in 0.062 seconds)
Similiar Articles: Apache 2, allow from localhost - comp.infosystems.www.servers.unix ...Hi, After moving a site (in development) from /var/www to ~/public_html I am no longer allowed to access it (without loggin in). The authenticati... Only allow connections from localhost - comp.databases.ibm-db2 ...Only allow connections from localhost - comp.databases.ibm-db2 ... Configuring Apache to allow you to run Web base Remote Connection ... Apache 2, allow from localhost ... Remote access to Tomcat web server - comp.lang.java.programmer ...Apache 2, allow from localhost - comp.infosystems.www.servers.unix ... Apache 2, allow from localhost - comp.infosystems.www.servers.unix ..... written to /var/log/apache2 ... Configuring Apache to allow you to run Web base Remote Connection ...Configuring Apache to allow you to run Web base Remote Connection ... Apache 2, allow from localhost - comp ... Apache allow for localhost only: localhost, apache, allow ... how to enable PUT reqests for Apache 2 - comp.infosystems.www ...Apache 2, allow from localhost - comp.infosystems.www.servers.unix ... how to enable PUT reqests for Apache 2 - comp.infosystems.www ... Apache 2, allow from localhost ... change mysql from localhost to host name - comp.databases.mysql ...Apache 2, allow from localhost - comp.infosystems.www.servers.unix ... change mysql from localhost to host name - comp.databases.mysql ... Apache 2, allow from localhost ... Error 403 Forbidden forwarding from Apacha to Tomcat - comp.lang ...Error 403 Forbidden forwarding from Apacha to Tomcat - comp.lang ... Apache 2, allow from ... [SOLVED] Apache Access forbidden Error 403 localhost (Page 1 ... Paste in Firefox - comp.lang.javascriptDon wrote: > Paste the apache logs here...when you access the site.. OK ... Paste in Firefox - comp.lang.javascript Apache 2, allow from localhost - comp.infosystems ... Getting "access denied" error when mounting - comp.unix.solaris ...Apache 2, allow from localhost - comp.infosystems.www.servers.unix ... change mysql from localhost to host name - comp ... Getting "access denied" error when mounting ... Why can't I start apache on port != 80 ? - comp.sys.sun.admin ...Can't modify httpd.conf under apache 2.2.16 - comp.infosystems ... Why won't xampp and wampp allow me to start Apache on port 80 on localhost? ... Apache 2, allow from localhost - comp.infosystems.www.servers.unix ...Hi, After moving a site (in development) from /var/www to ~/public_html I am no longer allowed to access it (without loggin in). The authenticati... Apache allow for localhost only: localhost, apache, allow, from, onlyExperts Exchange; Web Servers; Apache Web Server; Apache allow for localhost only ... That I can install Apache 2.0.48 ,start Apache service is OK.But when ... 7/28/2012 10:14:39 AM
|
|
|
|
|
|
|
|
|