You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Josu Lazkano <jo...@barcelonamedia.org> on 2011/08/30 17:05:57 UTC

[users@httpd] Password access except localhost

Hello, I have a Apache2 server on a Debian Squeeze, I have password
protected website, but I need to access to the web without user/pass
just from localhost.

This is my site configuration:

VirtualHost *:80>
        ServerAdmin mymail
        ServerName mydomain
        DocumentRoot /var/www/mysite/html
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/mysite/html/>
                Options Indexes FollowSymLinks MultiViews
                AuthType Basic
                AuthName "Restricted Access"
                AuthUserFile /etc/apache2/http-passwords
                Require valid-user
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /var/www/mysite/log/error.log

        # Possible values include: debug, info, notice, warn, error,
crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/www/mysite/log/access.log combined

</VirtualHost>


How could I configure it?

I want to configure some wget-bash-script to put on cron, so I can not
enter any user/pass.

Is it possible?

Thanks and best regards.

Re: [users@httpd] Password access except localhost

Posted by Josu Lazkano <jo...@barcelonamedia.org>.

On Tue, 2011-08-30 at 16:55 +0100, Tom Evans wrote:
> On Tue, Aug 30, 2011 at 4:05 PM, Josu Lazkano
> <jo...@barcelonamedia.org> wrote:
> > Hello, I have a Apache2 server on a Debian Squeeze, I have password
> > protected website, but I need to access to the web without user/pass
> > just from localhost.
> >
> > This is my site configuration:
> >
> > VirtualHost *:80>
> >        ServerAdmin mymail
> >        ServerName mydomain
> >        DocumentRoot /var/www/mysite/html
> >        <Directory />
> >                Options FollowSymLinks
> >                AllowOverride All
> >        </Directory>
> >        <Directory /var/www/mysite/html/>
> >                Options Indexes FollowSymLinks MultiViews
> >                AuthType Basic
> >                AuthName "Restricted Access"
> >                AuthUserFile /etc/apache2/http-passwords
> >                Require valid-user
> >                AllowOverride All
> >                Order allow,deny
> >                allow from all
> >        </Directory>
> >
> >        ErrorLog /var/www/mysite/log/error.log
> >
> >        # Possible values include: debug, info, notice, warn, error,
> > crit,
> >        # alert, emerg.
> >        LogLevel warn
> >
> >        CustomLog /var/www/mysite/log/access.log combined
> >
> > </VirtualHost>
> >
> >
> > How could I configure it?
> >
> > I want to configure some wget-bash-script to put on cron, so I can not
> > enter any user/pass.
> >
> > Is it possible?
> >
> > Thanks and best regards.
> >
> 
> Require valid-user
> Order allow,deny
> Allow from localhost
> Satisfy any
> 
> Cheers
> 
> Tom
> 
> ---------------------------------------------------------------------
> 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
> 

Thanks Tom! It works.

Best regards.

Re: [users@httpd] Password access except localhost

Posted by Tom Evans <te...@googlemail.com>.
On Tue, Aug 30, 2011 at 4:05 PM, Josu Lazkano
<jo...@barcelonamedia.org> wrote:
> Hello, I have a Apache2 server on a Debian Squeeze, I have password
> protected website, but I need to access to the web without user/pass
> just from localhost.
>
> This is my site configuration:
>
> VirtualHost *:80>
>        ServerAdmin mymail
>        ServerName mydomain
>        DocumentRoot /var/www/mysite/html
>        <Directory />
>                Options FollowSymLinks
>                AllowOverride All
>        </Directory>
>        <Directory /var/www/mysite/html/>
>                Options Indexes FollowSymLinks MultiViews
>                AuthType Basic
>                AuthName "Restricted Access"
>                AuthUserFile /etc/apache2/http-passwords
>                Require valid-user
>                AllowOverride All
>                Order allow,deny
>                allow from all
>        </Directory>
>
>        ErrorLog /var/www/mysite/log/error.log
>
>        # Possible values include: debug, info, notice, warn, error,
> crit,
>        # alert, emerg.
>        LogLevel warn
>
>        CustomLog /var/www/mysite/log/access.log combined
>
> </VirtualHost>
>
>
> How could I configure it?
>
> I want to configure some wget-bash-script to put on cron, so I can not
> enter any user/pass.
>
> Is it possible?
>
> Thanks and best regards.
>

Require valid-user
Order allow,deny
Allow from localhost
Satisfy any

Cheers

Tom

---------------------------------------------------------------------
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