LinuxQuestions.org
Register a domain and help support LQ
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 10-11-2004, 03:31 AM   #1
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 214

Rep: Reputation: 30
webpage


I have installed red linux 8.0 in a server and running appache on it.
I have changed my httpd.conf file and put the files in public_html directory of the users. But i cant see the web page from the browser
by
http://xx.yy.xx/user1
but i am able to see it by
http://xx.yy.xx/~user1

what do i do so that i can see the page as http://xx.yy.xx/user1
Thanks
SAnjib gupta
 
Old 10-11-2004, 03:41 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Can you see a webpage with
http://xx.yy.xx/

What did you change in httpd.conf?
 
Old 10-11-2004, 03:48 AM   #3
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 214

Original Poster
Rep: Reputation: 30
yes i can see the main web page in
http://xx.yy.xx and also the user web page by http://xx.yy.xx/~user1

I have done the following

Change the user home directory permission to 711 (chmod 711 user1)
Create public_html in user directory and change its permission to 775.
Put the html files in the directory (/home/user1/public_html)

In the /etc/httpd/conf/httpd.conf
Coment UserDIR diable
Uncomment UserDIR public_html
Uncomment the lines
Uncomment all the lines
<Directory /home/*/public_html
..
...
..
..
</Directory>

service httpd restart
 
Old 10-11-2004, 04:09 AM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
As far as I know, a public_html directory such as /home/user1/public_html would have to be referenced as ~user1. It can't be /user1 because that is referenced according to the DocumentRoot directory. So, if your DocumentRoot directory is /var/www then http://xx.yy.xx/user1 would be /var/www/user1. So they would have to have a directory directly under the DocumentRoot directory.

Hope this is clear.
 
  


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
Webpage How-To Linux~Powered Programming 5 03-19-2007 06:20 PM
Webpage troycus Linux - Software 4 06-16-2005 01:26 PM
no one can see my webpage! killjoyce Linux - Networking 7 04-06-2004 03:53 PM
How can I browse webpage clearly? bin_shell Linux - Software 1 03-03-2004 05:10 AM
Help with webpage lockejr Linux - General 16 03-28-2003 10:16 AM


All times are GMT -5. The time now is 08:41 PM.

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