I've got a RedHat 8.0 Linux box runing the latest
version of Apache. I'm trying to setup a new user/website.
So far creating the user/website is no problem, but I can't
hit the site from the browser. What am I missing?? This is
what I'm doing:
I have a website registered: it is
pointing to my box. If I browse to it before doing the
below, I get the index.html page I have sitting in
/var/ That works great.
What I want to do is setup a user called getinvest and
put the website in getinvest's home directory so when
I browse to Apache is serving the page:
/home/getinvest/website/index.html
Here is what I'm doing:
#Start in /home as a user with root privledges
#Create the user and assign them to their group and the
#apache group
/usr/sbin/useradd getinvest -G apache
#Create the user's password
passwd getinvest
#Create the subdirectorie under their home directory
cd getinvest
mkdir website
#FTP to the box as getinvest from another box and
#upload a simple file called index.html into the
#website directory. This works great.
#Add the website dir to the apache group
chown -R apache.apache website
#Change the permissions so apache/getinvest have
#access to the files
chmod -R 2770 website
#This is my httpd.conf file
<VirturalHost 76.30.132.66>
ServerName ServerAdmin webmaster@getinvest.com
DocumentRoot /home/getinvest/website
</VirturalHost>
#Restart the web server
/usr/sbin/httpd -k restart
I would expect at this point I should be able to
browse to and be shown
/home/getinvest/website/index.html
I would also expect that I should be able to
browse to:
I can't do either! What have I missed?
Thanks!
version of Apache. I'm trying to setup a new user/website.
So far creating the user/website is no problem, but I can't
hit the site from the browser. What am I missing?? This is
what I'm doing:
I have a website registered: it is
pointing to my box. If I browse to it before doing the
below, I get the index.html page I have sitting in
/var/ That works great.
What I want to do is setup a user called getinvest and
put the website in getinvest's home directory so when
I browse to Apache is serving the page:
/home/getinvest/website/index.html
Here is what I'm doing:
#Start in /home as a user with root privledges
#Create the user and assign them to their group and the
#apache group
/usr/sbin/useradd getinvest -G apache
#Create the user's password
passwd getinvest
#Create the subdirectorie under their home directory
cd getinvest
mkdir website
#FTP to the box as getinvest from another box and
#upload a simple file called index.html into the
#website directory. This works great.
#Add the website dir to the apache group
chown -R apache.apache website
#Change the permissions so apache/getinvest have
#access to the files
chmod -R 2770 website
#This is my httpd.conf file
<VirturalHost 76.30.132.66>
ServerName ServerAdmin webmaster@getinvest.com
DocumentRoot /home/getinvest/website
</VirturalHost>
#Restart the web server
/usr/sbin/httpd -k restart
I would expect at this point I should be able to
browse to and be shown
/home/getinvest/website/index.html
I would also expect that I should be able to
browse to:
I can't do either! What have I missed?
Thanks!