M300A |
Je cherche à mettre une auth sur le cgi de awstats mais pas sur les autres.
J'ai donc fais ca :
Code :
- #### HTTP museekplus.le-vert.net vhost ####
- ###########################################
- <VirtualHost *:80>
- ServerAdmin trac-admin@le-vert.net
- ServerName www.museek-plus.org
- ServerAlias museek-plus.org
- ServerAlias museekplus.le-vert.net
- ### Trac common stuff
- Alias /trac "/usr/share/trac/htdocs/"
- <Directory /usr/share/trac/htdocs/>
- Options Indexes MultiViews
- AllowOverride None
- Order deny,allow
- allow from all
- </Directory>
- ### Trac configuration
- <Location />
- SetHandler mod_python
- PythonHandler trac.web.modpython_frontend
- PythonOption TracUriRoot /
- PythonOption TracEnv /data/trac/museek+
- Order deny,allow
- allow from all
- </Location>
- ### We need an htaccess auth on /login
- <Location "/login">
- AuthType Basic
- AuthName "Museek+ Trac's Admin Area"
- AuthUserFile /data/trac/auth/museek+.le-vert.net
- Require valid-user
- </Location>
- ### DavSVN on /svn
- <Location /svn>
- DAV svn
- SVNPath /data/subversion/museek+
- AuthType Basic
- AuthName "Museek+'s Subversion Repository"
- AuthUserFile /data/trac/auth/museek+.le-vert.net
- <LimitExcept GET PROPFIND OPTIONS REPORT>
- Require valid-user
- </LimitExcept>
- </Location>
- ### Debian & Ubuntu repository and sources tarballs
- Alias /debian "/data/repos/museek+/debian/"
- Alias /ubuntu "/data/repos/museek+/ubuntu/"
- Alias /files "/data/repos/museek+/files/"
- <Directory "/data/repos/museek+/">
- Options Indexes FollowSymLinks MultiViews
- AllowOverride None
- Order deny,allow
- allow from all
- </Directory>
- <Location /debian>
- SetHandler None
- </Location>
- <Location /ubuntu>
- SetHandler None
- </Location>
- <Location /files>
- SetHandler None
- </Location>
- ### Disable python handler on /icons (indexer)
- <Location /icons>
- SetHandler None
- </Location>
- ### Enable CGIs
- ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
- <Directory /usr/lib/cgi-bin/>
- AllowOverride all
- Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
- Order allow,deny
- Allow from all
- </Directory>
- <Location /cgi-bin>
- SetHandler None
- </Location>
- ### Awstats access stats
- Alias /awstats-icon/ /usr/share/awstats/icon/
- <Location /awstats-icon>
- SetHandler None
- </Location>
- <Location /cgi-bin/awstats.pl>
- AuthType Basic
- AuthName "Museek+'s Access Stats"
- AuthUserFile /data/trac/auth/museek+.le-vert.net
- Require valid-user
- </Location>
- ErrorLog /var/log/apache2/museekplus.le-vert.net-error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
-
- CustomLog /var/log/apache2/museekplus.le-vert.net-access.log combined
- ServerSignature On
- </VirtualHost>
- ## End HTTP museekplus.le-vert.net vhost ##
- ###########################################
- ### HTTPS museekplus.le-vert.net vhost ####
- ###########################################
- <VirtualHost *:443>
- ServerName www.museek-plus.org
- ServerAlias museek-plus.org
- ServerAlias museekplus.le-vert.net
- RewriteEngine On
- RewriteRule ^(.*) http://%{SERVER_NAME}$1
- </VirtualHost>
- # End HTTPS museekplus.le-vert.net vhost ##
- ###########################################
|
Je pensais que le la directive location fonctionnerait bien mais il n'en est rien. Le CGI est accesible sans authentifiaction.
Pourriez vous m'aider ?
Merci |