LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2011, 07:39 AM   #1
ananthkadalur
Member
 
Registered: Mar 2011
Posts: 38

Rep: Reputation: 0
How to publish folders & sub folders on http server


Hi......everybody, I am working as a Linux Administrator since few months. I have done network based installation in cent, fedora & RHEL using NFS & FTP. But I wanted to do the network installation with also http. I don't know how to set up http server. I am keeping Cent OS DVD content in /var/ftp/pub folder. So if I type http://192.168.0.100 or http://192.168.0.100/var/ftp/pub(I am not sure) it should show the directories and subdirectories. But I don't know how to configure http server. I am struggling for this since so long. I request you, kindly help me regarding this.

Regards
Ananth
 
Old 07-05-2011, 08:08 AM   #2
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Hi

Just Create a directory under /var/www/html say Centos, as it is default DocumentRoot for sharing your installation media.

As you have kept the Installable at /var/ftp/pub. Just create a soft link from /var/ftp/pub to /var/www/html/Centos.

Code:
ln -s /var/ftp/pub /var/www/html/Centos
Thanks,

Last edited by vinaytp; 07-05-2011 at 08:14 AM.
 
1 members found this post helpful.
Old 07-05-2011, 10:19 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,944

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by vinaytp View Post
Hi
Just Create a directory under /var/www/html say Centos, as it is default DocumentRoot for sharing your installation media.

As you have kept the Installable at /var/ftp/pub. Just create a soft link from /var/ftp/pub to /var/www/html/Centos.
Code:
ln -s /var/ftp/pub /var/www/html/Centos
Thanks,
Sorry, but this is incomplete advice.

Unless Apache has been set up to explicitly allow symlinks, making one as you suggested won't work, since Apache won't follow it (for security reasons). Also, the DirectoryIndex directive has to be set to point to the folder(s), to allow a listing to be made at ALL, even if symlinks are allowed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script to create folders including making recursive folders.... linux-bandit Linux - Software 8 11-28-2009 02:50 AM
[SOLVED] How to access windows files & folders from Enterprise Linux Server hnpat Linux - Newbie 4 09-23-2009 06:56 AM
find -exec command to recursively delete files and folders in folders with X name Joan Murt Linux - Newbie 2 07-08-2009 05:35 PM
Serving HTTP From Home Folders spectre_25gt Linux - Security 4 03-17-2006 05:02 PM
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 07:14 AM


All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration