Alias directory in Apache - anyone know how to fix...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kemp
    Confirmed User
    • Feb 2001
    • 392

    #1

    Alias directory in Apache - anyone know how to fix...

    I set up an Alias directory on my server.

    http://fatsluts.info/recips/

    But for some reason if you click on any of the files or folders the server says "Not Found"

    I set the permissions of the directory to 755 and the files to 644 like the rest of my server is set up but alas - no luck.

    Here is the alias I set up (in httpd.conf):

    Alias /recips/ "/usr/www/NAME/zrecips"

    <Directory "/usr/www/NAME/zrecips">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Am I missing something?
    Last edited by kemp; 12-07-2004, 06:20 PM.
  • fris
    I have to go potty
    • Aug 2002
    • 55855

    #2
    why dont you just setup a symbolic link
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


    My Newest Theme

    Comment

    • fris
      I have to go potty
      • Aug 2002
      • 55855

      #3
      alias is not a command in apache config, you are thinking about ScriptAlias
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


      My Newest Theme

      Comment

      • kemp
        Confirmed User
        • Feb 2001
        • 392

        #4
        Symbolic link - Is that what the "FollowSymLinks" option is?

        I thought it was something unrelated. That could be the fix. I'll try it fris - thanks.

        Comment

        • fris
          I have to go potty
          • Aug 2002
          • 55855

          #5
          from console ln -s source dest

          ln -s /usr/www/NAME/zrecips /home/kemp/recips

          or whatever
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


          My Newest Theme

          Comment

          • fuzebox
            making it rain
            • Oct 2003
            • 22370

            #6
            Originally posted by fris
            alias is not a command in apache config, you are thinking about ScriptAlias
            Wtf?

            I use "Alias" for tons of stuff.

            http://httpd.apache.org/docs/mod/mod_alias.html

            If you don't know for sure, why post anyway?

            Comment

            • Quickdraw
              Confirmed User
              • Mar 2004
              • 1717

              #7
              Try it without the quotes and slash after recipshahahaha
              Should be no need for symbolic linking with this
              (I don't even use the other part you have and it works great)

              Alias /recips /usr/www/NAME/zrecips

              Comment

              • Intrigue
                Confirmed User
                • Feb 2004
                • 662

                #8
                it's most likely a problem with the trailing slash, either get rid of it in your alias or add it to the directory def.

                Comment

                • kemp
                  Confirmed User
                  • Feb 2001
                  • 392

                  #9
                  Intrigue - you got it. It was a problem with the trailing slash.

                  Thanks for the tip!

                  Comment

                  • Intrigue
                    Confirmed User
                    • Feb 2004
                    • 662

                    #10
                    Originally posted by kemp
                    Intrigue - you got it. It was a problem with the trailing slash.

                    Thanks for the tip!
                    np

                    Comment

                    Working...