LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2005, 12:07 AM   #1
gajaykrishnan
Member
 
Registered: Jul 2004
Posts: 65

Rep: Reputation: 15
how to add web pages in apache webserver


i have already started a apache web server and i am able to see the home page ...

but how to add the web pages or how to create a site.
 
Old 02-09-2005, 12:34 AM   #2
ogmoid
Member
 
Registered: Jul 2004
Location: Coeur d'Alene Idaho
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
(This assumes Apache 1.3.x )
Inspect Apache's "http.conf" file (at /etc/apache/http.conf in slack) for a line similar to this:

Code:
DocumentRoot "/var/www/htdocs"
So /var/www/htdocs will be the location of the pages.
(The ones you are currently able to view should be there)

Per user pages (if your server is so configured) are typically stored in:

Code:
~/public_html
Look for a line in the conf file containing "UserDir" if that doesn't work.
 
Old 02-09-2005, 12:55 AM   #3
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
if u r using redhat ur documtt will be probably set to /var/www/html. u can change it to ur choice by editing the conf: file /etc/httpd/conf/httpd.conf. now for web pages u must add ur main page in the name 'index.html' in /var/www/html. for creating a web page u need to know xml,html and that sort. restart httpd service. execute 'httpd - t' to see if there are any errors.......
 
  


Reply



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
Apache + where to place web pages?? blizunt7 Fedora 6 06-01-2005 03:27 PM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 05:44 PM
I think apache is blocking web pages with forbidden error? need help unixmad Linux - Software 7 08-28-2004 04:53 PM
Question about Multiple web pages in apache SSBN Linux - Networking 10 05-01-2003 10:18 AM
View Apache web pages r4merlin Linux - Newbie 10 02-17-2003 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:34 AM.

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
Open Source Consulting | Domain Registration