Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
Im on a VPS and i have a few people i share it with. Its a redhat 7.3 with apache VPS. The doc root is /var/www/html I have their accounts ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2003
    Posts
    7

    Few questions for redhat 7.3


    Im on a VPS and i have a few people i share it with. Its a redhat 7.3 with apache VPS.

    The doc root is /var/www/html
    I have their accounts in the /home/ dir under /home/username
    I want my main pages in the /var/www/html directory so my site goes to http://mydomain.com it reads from the /var/www/html dir but what i need is when the user calls for its page "http://mydomain.com/username" apache will call from /home/username. How do i set it up to do that?

    Also when i create their new user accounts i want it to auto setup the /public_html dir to call from instead of the /home/username.

    Can anyone help on these 2 questions???

    Thanks jeramie

  2. #2
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    For the first problem
    you will need a line like this in your httpd.conf file:

    Alias /username /home/username

    and I quite did not understand your second issue? could you please elaborate....

  3. #3
    Just Joined!
    Join Date
    Jun 2003
    Posts
    7
    Thanks for the first answer.

    On the second one

    what i would like is something like cpanel does. When it creates a user account it automaticly adds the user as /home/user/public_html instead of just /home/user that way my user accounts are a little bit more secure.

    So when i create a user i would like it to create a user with /home/user/public_html instead of /home/user

    Thanks jeramie

  4. #4
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    hmmm....i dont know the answer to that one...i hvnt used cpanel either...
    the only thing that i can think of is writing a script that updates the home directory in the corresponding file...

  5. #5
    Just Joined!
    Join Date
    Jun 2003
    Posts
    7
    when i did step one i went to http://mydomain.com/user now it says you dont have permisions to view this page :/ grrrr im such a newbie

  6. #6
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    yes, you'll have to setup the correct permissions on the directory...
    i guess u r running the server as root..wat r the permissions on the directory?

  7. #7
    Just Joined!
    Join Date
    Jun 2003
    Posts
    7
    755

  8. #8
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    those permissions should be fine...whats the ownerid/group id for the directory and the files in that directory?

  9. #9
    Just Joined!
    Join Date
    Jun 2003
    Posts
    7
    both are set to the username

  10. #10
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    well do you have any statements like these
    order deny,allow
    deny from all

    I just tried it on my apache instance...my main server is running as root..
    i did an alias to a user and the directory permissions on this home dir are
    755 owned by the user and group staff...the files under it are 755 as well..
    everythg is working fine...
    you have specified the absolute path in the Alias directive right?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •