I'm tired to search in google about that, without finding any answer.
I'm doing a server and I want to deny all but index.php.
This is my /etc/apache2/sites-enabled/000-default (only the important things)
I'm testing the server inside the lan...
When I access to " all works fine.
The trouble is when I try to access to "The server doesn't redirect to index.php.
I tried to insert 'DirectoryIndex index.php', with no luck.
Can you help me?
PS: Sorry for my bad english...
I'm doing a server and I want to deny all but index.php.
This is my /etc/apache2/sites-enabled/000-default (only the important things)
Code:
DocumentRoot /home/user/websrvr
<Directory />
Options FolowSymLinks
AllowOverride none
</Directory>
<Directory /home/user/websrvr>
Options FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
allow from 127.0.0.1
deny from all
<Files index.php>
order allow,deny
allow from all
</Files>
</Directory>
I'm testing the server inside the lan...
When I access to " all works fine.
The trouble is when I try to access to "The server doesn't redirect to index.php.
I tried to insert 'DirectoryIndex index.php', with no luck.
Can you help me?
PS: Sorry for my bad english...