Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    17

    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:

    Code:
    <Directory "/srv/www/mysite">
            Options  FollowSymLinks
            
            AllowOverride None
           
            Order allow,deny
            Allow from all
    </Directory>
    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:
    Code:
    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
    Location
    The Desert!
    Posts
    85
    Try:
    Code:
    Options  +FollowSymLinks

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    17
    I tried but now is listing index.html file (with page "Index of /mydir")........


  4. $spacer_open
    $spacer_close

Posting Permissions

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