Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jan 2008
Making a directory viewable to the public...
I created a /pub directory however whenever I link to it, it seems to be looking for a html file because I get a file not found error.
Here is an example of a working /pub directory.
Index of /pub
To be more clear I created a /pub in the root directory of my server, however when I link to it I get a file not found error. I have tried setting permissions and things, seems not to work. I want it to list the files I have in /pub. =)
I assume you are using Apache. If that is the case, you can do one of the following:
As root, create a "pub" directory:
# mkdir /var/www/html/pub
As the root user, navigate to /var/www/html
Create a soft link to your /pub directory
# ln -s /pub
# chmod 755 /pub
# chcon -R system_u:object_r:httpd_user_content_t:s0 pub/
If that still doesn't work, have a look at your httpd.conf file and make sure that Options Indexes FollowSymLinks is present in <Directory "/var/www/html">.
Hope that helps.