Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
Hi all, I have a fat32 partition which mount as 777 permission. I would like to create a alias on the apache http server which pointed to this partition for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11

    Apache HTTP server, no permission?


    Hi all, I have a fat32 partition which mount as 777 permission. I would like to create a alias on the apache http server which pointed to this partition for browsing the file. But the browser display the following error message:

    Forbidden
    You don't have permission to access /resources/ on this server.

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


    The partition was mounted using this options in fstab.
    Code:
    /dev/hda7    /mnt/share1    vfat     gid=50,umask=0    0  0
    My http.conf file:
    Code:
    Alias /resources/ "/mnt/share1/resources"
    <Directory "/mnt/share1/resources">
       Options Indexes MultiViews
       AllowOverride None
       Order allow, deny
       Allow from all
    </Directory>

  2. #2
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11
    Does anyone know what's the problem?

  3. #3
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    Are you really sure you have 777 in this directory?
    And it is not so that you just try to access a bunch of files, i.e. file listing, without a HTML file?

    Just for trouble shoot, create an index.html in the directory

    Code:
    <html>
     <title>Just a test page</title>
      <body>
         A simple test page
      </body>
    </html>

  4. #4
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11
    Yes, the directory is 777 permission.

    The browser still cannot access the index.html file, 403 forbidden

  5. #5
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    Just to make sure that you are able to connect to the directory,
    try
    Code:
    su - apache
    cd /mnt/share1/resources
    ls *
    If this fails, it is a permission issue

  6. #6
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11
    I tried to execute the command "su - apache", but the system report "This account is currently not available. Is that this issue to cause the problem?

  7. #7
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    Strange, which distro and version is it you are using?

  8. #8
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11
    How can I know that?

  9. #9
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11
    Is that the problem of fat32?

  10. #10
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    Quote Originally Posted by supermaneddie
    How can I know that?
    Hmm! Did you download your Linux?
    Then it should have been told there when you choosed your distro.
    Anyhow, it is quite some difference how different distros do theire default setup.

Page 1 of 2 1 2 LastLast

Posting Permissions

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