Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> How To Make Your Home Dir Localhost, How to make your home dir localhost
pversteijnen
post Sep 6 2003, 08:29 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 6-September 03
Member No.: 1,395



I want to use my home dir as a website.

I use RedHat 9.0

I made a directory /home/pieter/html

So when I type http://localhost/pieter my website comes up but witch file must I change to make this happen.

Thnx

Pieter sad.gif
Go to the top of the page
 
+Quote Post
hughesjr
post Sep 6 2003, 09:02 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



I'm not sure what you are asking....

Do you want a webiste that can be seen by others or only you?

You must setup your webserver software (normally /etc/httpd/conf/httpd.conf on linux) if you want to run a webserver.

If you just want to view your site locally, you can just type this in the web browser:

/home/pieter/html


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Joey
post Sep 6 2003, 09:05 AM
Post #3


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



There are a few ways to do this.

One would be to enable the Userdir in your httpd.conf file (then restart apache). You would then put your html into /home/user/public_html and call the directory by going to http://localhost/~user/

Another way would be to set the document root in httpd.conf to /home/user/html then you could just go to http://localhost

Check the apache docs at http://httpd.apache.org they are full of information and examples.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th December 2017 - 07:57 AM