Jump to content

apache / Folder's Problem's


jleaman
 Share

Recommended Posts

ok so my new server is working sweet and really well i thank all people for helping so far with my small and minor problems.. my question is how do i make folder listings work.? i have my server Here is a example.

 

http://diy-audio.curtek.com ( actual web page and all. ) But i want to make a folder like http://diy-audio.curtek.com/files/ and be able to put files in there and download them via the internet browsers. but have it as a listing of the files in that directory ? how can or how can i make this happen.. id like to also know how to setup ftp Personal files only so i can update the web page to the server .. is this hard or easy ..?

Link to comment
Share on other sites

For your directory listing, there is a directive which you can use to allow dir browsing, it's not that hard to find in the Apache manual (I don't know it by heart else I would have told you here).

Link to comment
Share on other sites

Hi,

To find out the answer to your question, I suggest you read the Indexing page on the apache site. I have included the URL below:

 

Fancy Indexing

 

It should tell you how to configure your conf file so that apache will automatically give you a list of files with icons to represent the types of files you have in your directory.

 

Hope this is of some help.

Link to comment
Share on other sites

i'm still confused on how to do this.. I think ill setup mandrake 9.2 on a little dell box at home and screw with it some more.. i also want to get this ftp thing working so i can upload new web-page files when im done working on them..

Link to comment
Share on other sites

nikon34 im stumped man i have tried every thing and been looking on how to get instruction's on how to do this and still a no go... : O (

Link to comment
Share on other sites

ok you need to set directory directives

in /etc/httpd/conf/commonapache.conf (or whatever the common file is called ) you need to make a directory directive that looks somewhat like this

<Directory /path/to/directory>
   <IfModule mod_deflate.c>
     AddOutputFilterByType DEFLATE text/html text/plain text/xml
   </IfModule>
   Options Indexes FollowSymLinks MultiViews
   AllowOverride All
   <IfModule mod_access.c>
     Order allow,deny
     Allow from all
   </IfModule>
</Directory>

then restart or reload apache

/etc/init.d/httpd restart

 

now you should have directory listing turned on

Link to comment
Share on other sites

If your main site's index.html file is in /var/www/html ... What happens if you put a folder named "files" in /var/www/html and put some files in there... but don't put any index.html file there.

 

Then browse:

http://diy-audio.curtek.com/files/

 

Using a default apache setup should show a listing of your files unless you have an index page there which would display that instead.

Link to comment
Share on other sites

yeah im home all night.. going to try to get this going.. but first i need to figure out how to change the log in window so i can type in the persons name that i want to log iin as.. right now it is set to icon with only one person. Me... but i dont want that.. : O ( SNIFf..

Link to comment
Share on other sites

If you still get stuck, just post the file here and we can edit it for you.

If you want restrict access to certain people, you can insert .htaccess files.

But just work on getting the thing running first eh?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...