Results 1 to 3 of 3
I'm running Suse Linux Enterprise Server and I have a site in /srv/www/mysite .
Everything is working but I need to redirect a directory mydir to myfile.php.
So I placed ...
- 11-19-2010 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 15
Apache2 subdirectory
I'm running Suse Linux Enterprise Server and I have a site in /srv/www/mysite .
Everything is working but I need to redirect a directory mydir to myfile.php.
So I placed an index.html file in mydir and index.html is supposed to redirect to myfile.php with html code.
Problem is that Apache is forbidding me access to that directory.
In default-server.conf I have:
and this is the only "Directory" directive in my Apache configuration files.Code:<Directory "/srv/www/mysite"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
If I add "Indexes" to the options, Apache is listing index.html file .......
Log file says:
Please, how can I make this redirect work.........?Code:Directory index forbidden by Options directive: /srv/www/mysite/mydir/
- 11-21-2010 #2
- 11-22-2010 #3Just Joined!
- Join Date
- Nov 2006
- Posts
- 15
I tried but now is listing index.html file (with page "Index of /mydir")........


Reply With Quote