Forum Moderators: phranque
Order Deny,Allow
Deny From All
AuthName clan35
AuthType Basic
AuthUserFile /home/clan35/.htpasswd
require valid-user
satisfy any
<VirtualHost *:80>
ServerAdmin webmaster@localhost
AccessFilename .htaccess
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
Satisfy Any
</Directory>
<Directory /var/www/icons/>
AllowOverride All
Order Allow,Deny
Allow From All
Satisfy Any
</Directory>
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>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
SetEnvIf Remote_Addr "127\.0\.0\.1" loopback
SetEnvIf Remote_Addr "::1" loopback
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!loopback
</VirtualHost> clan35:$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ DirectoryIndex home.php Order allow,deny
Allow from all Options Indexes FollowSymLinks MultiViews but then i can not use index.php
<Files home.php>
blahblah
</Files> <FilesMatch (name|othername|thirdname)\.php>
blahblah
</FilesMatch> <FilesMatch (?<!home)\.php>
etcetera <Directory /var/www>
DirectoryIndex home.php index.php
Order Deny,Allow
Deny From All
AuthName clan35
AuthType Basic
AuthUserFile /home/clan35/.htpasswd
require valid-user
satisfy any
</Directory>
<Files "home.php">
satisfy any
order deny,allow
allow from all
</Files>
Order Deny,Allow
Deny From All
AuthName clan35
AuthType Basic
AuthUserFile /home/clan35/.htpasswd
require valid-user
satisfy any
<Files "home.php">
satisfy any
order deny,allow
allow from all
</Files>
Ok now i get Internal Server Error
If i do like this i know it's wrong but then home.php work without user and password
...
but then when i try www.example.com index.php is still the default page it start with i don't understand DirectoryIndex Directive configuration how to get home.php to be the start page ?
[Wed Oct 15 14:35:35 2014] [alert] [client 192.168.0.1] /var/www/.htaccess: <Directory not allowed here DirectoryIndex home.php index.php
Order Deny,Allow
Deny From All
AuthName clan35
AuthType Basic
AuthUserFile /home/clan35/.htpasswd
require valid-user
satisfy any
<Files "home.php">
satisfy any
order deny,allow
allow from all
</Files>