htaccess for maintenance

Hello,
I am looking for a solution to write an htaccess file for maintenance.

I would like to :
1) Deny from all / my web pages
2) _excepted one directory_ (name 'maintenance')

I have no Apache administration rights (just user).
So Directory and Locate can't be used.

How can i do this ? Any help is welcome...
nanart [ Mi, 15 August 2007 21:36 ] [ ID #1796060 ]

Re: htaccess for maintenance

nanart a écrit :
> Hello,
> I am looking for a solution to write an htaccess file for maintenance.
>
> I would like to :
> 1) Deny from all / my web pages
> 2) _excepted one directory_ (name 'maintenance')
>
> I have no Apache administration rights (just user).
> So Directory and Locate can't be used.
>
> How can i do this ? Any help is welcome...
something like :

deny from all

<Files "^\/maintenance^\/*">
allow from all
</Files>

don't work....

perhaps something else ?
nanart [ Mi, 15 August 2007 22:24 ] [ ID #1796063 ]

Re: htaccess for maintenance

nanart a écrit :
> Hello,
> I am looking for a solution to write an htaccess file for maintenance.
>
> I would like to :
> 1) Deny from all / my web pages
> 2) _excepted one directory_ (name 'maintenance')
>
> I have no Apache administration rights (just user).
> So Directory and Locate can't be used.
>
> How can i do this ? Any help is welcome...
something like :

Order Deny,Allow
deny from all

<Files "^/maintenance^/*maintenance*">
Order Allow,Deny
allow from all
</Files>

ErrorDocument 403 /maintenance/maintenance.html

Don't work....
All files are looking in ../
not in ../maintenance/
-->error 403

perhaps something else ?
nanart [ Mi, 15 August 2007 23:02 ] [ ID #1796064 ]

Re: htaccess for maintenance

Post removed (X-No-Archive: yes)
Notifier Deamon [ Do, 16 August 2007 08:35 ] [ ID #1796879 ]

Re: htaccess for maintenance

Davide Bianchi a écrit :
> On 2007-08-15, nanart <nan.art> wrote:
>> something like :
>>
>> Order Deny,Allow
>> deny from all
>
> Dude, if you are reading the .htaccess file you're already allowed.
????
currently = i'm only prohibited (403)

> Change the index.html
I know.... but I don't want.
I want to :
- deny _all_
- excepted _one directory_
nanart [ Do, 16 August 2007 05:24 ] [ ID #1796882 ]

Re: htaccess for maintenance

Davide Bianchi a écrit :
> On 2007-08-15, nanart <nan.art> wrote:
>> something like :
>>
>> Order Deny,Allow
>> deny from all
>
> Dude, if you are reading the .htaccess file you're already allowed.
????
currently = i'm only prohibited (403)

> Change the index.html
I know.... but I don't want.
I want to :
- deny _all_
- excepted _one directory_
nanart [ Do, 16 August 2007 15:07 ] [ ID #1796883 ]
Webserver » alt.apache.configuration » htaccess for maintenance

Vorheriges Thema: apache virtualhost configuration (ubuntu)
Nächstes Thema: Basic vs digest