Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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:

    <Directory "/srv/www/mysite">
            Options  FollowSymLinks
            AllowOverride None
            Order allow,deny
            Allow from all
    and this is the only "Directory" directive in my Apache configuration files.

    If I add "Indexes" to the options, Apache is listing index.html file .......

    Log file says:
    Directory index forbidden by Options directive: /srv/www/mysite/mydir/
    Please, how can I make this redirect work.........?

  2. #2
    Just Joined! barriehie's Avatar
    Join Date
    Apr 2008
    The Desert!
    Options  +FollowSymLinks

  3. #3
    I tried but now is listing index.html file (with page "Index of /mydir")........

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts