lotus



previous page: 036.  What is the quickest and safest way to recompile the kernel?
  
page up: Brief Linux FAQ
  
next page: 038.  I would like to have more lines and/or columns displayed when I use the text consoles. Is there a way I can do this?

037. I am trying to set up a home page. How do I go about doing that and where should I put my web files to view them on my Linux box?




Description

This article is from the the Brief Linux FAQ (BLFAQ) Maintained by Neil Zanella nzanella@ganymede.cs.mun.ca

037. I am trying to set up a home page. How do I go about doing that and where should I put my web files to view them on my Linux box?

If you are running the Apache web server then look in /etc/httpd/conf/srm.conf . There you should see lines like:

UserDir public_html
DirectoryIndex index.html index.shtml index.cgi

This means that your web files should be stored under a directory called ~/public_html and the first file to be read when a user accesses your web site with http://x1.x2.x3.x4/~<your-username> must be one of ~/index.html , ~/index.shtml , or ~/index.cgi . If you have an entry like:

127.0.0.1 localhost

in your /etc/hosts directory (ie. you have loopback enabled) than you can make sure everything is OK by pointing your browser to http://127.0.0.1/~<your-username> . Of course all files must have the right permissions, in particular you probably want to do a "chmod a+x ~/public_html" and a "chmod a+r index.html". If you are not on the Internet this enables you to edit a whole web site on a Linux box without having to be dialed up to your ISP. You can later upload the pages to the Internet. This method will pay off in browser speed when editing your web page.

 

Continue to:















TOP
previous page: 036.  What is the quickest and safest way to recompile the kernel?
  
page up: Brief Linux FAQ
  
next page: 038.  I would like to have more lines and/or columns displayed when I use the text consoles. Is there a way I can do this?