LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2003, 01:43 AM   #1
kelper
Member
 
Registered: Jan 2003
Posts: 77

Rep: Reputation: 15
Cool Apache first page


I'm using apache 1.3.xx
i want to set "www.xxx.com" for my default page
So i change DocumentRoot to /var/www/html/......
I set it to the first page, the text is shown but the
graph doesn't show. Is it the setting error?
I set alias to /var/www/html/...... that is ok (no problem)
 
Old 03-07-2003, 12:33 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
If the text is shown but the graphics are not then you are probably not specifying the correct locationg to the graphics. If the graphics are in /var/www/html/images then your html code should reflect that:

<img src="images/picture.jpg">

Also make sure that the permissions are correct on the images directory.
 
Old 03-09-2003, 08:16 PM   #3
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
quick apachee ? Once apachee is intalled where are the files to edit and post htm files.
 
Old 03-09-2003, 08:59 PM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0, RHEL5,6), CentOS, SuSE (10.x, 11.x, 12.2, 13.2), Solaris (8-10), Tru64, MacOS, Raspian
Posts: 1,106

Rep: Reputation: 64
Quote:
Originally posted by gonus
quick apachee ? Once apachee is intalled where are the files to edit and post htm files.
New web pages go in the directory named in the DocumentRoot variable in httpd.conf. That's usually a directory like /var/www/html or /var/www/htdocs. You can add new subdirectories below that point if you want to organize your web pages.

Have fun,

Rick
 
Old 03-09-2003, 09:19 PM   #5
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
Thanx I appreciate it. to view my pages I would type in 127.0.0.1 in my browser correct? Thanx again for the fast reply
 
Old 03-09-2003, 09:27 PM   #6
BaerRS
Member
 
Registered: Oct 2001
Location: Columbus, Ohio
Distribution: all.. but mainly SuSe--- looks like it changing to Red Hat
Posts: 119

Rep: Reputation: 15
Re: Apache first page

Quote:
Originally posted by kelper
i want to set "www.xxx.com" for my default page
I would first work on viewing you page like http://127.0.0.1
After that, you can work on the Domain name stuff.. What you asking for would take some DNS entries on your box.. or a remote dns server that points to your IP.

Scott
 
Old 03-09-2003, 10:05 PM   #7
kelper
Member
 
Registered: Jan 2003
Posts: 77

Original Poster
Rep: Reputation: 15
Angry

The Location is collect but i want to set a /var/www/cgi-bin/
openwebmail to the first page.
If i set DocumentRoot to /var/www/cgi-bin/openwebmail, the graphic is not shown.
I mean all the web page of graphic from this server is not
shown. When i set DocumentRoot to /var/www/cgi-bin/, it is no problem for the webpage.


Quote:
Originally posted by Crashed_Again
If the text is shown but the graphics are not then you are probably not specifying the correct locationg to the graphics. If the graphics are in /var/www/html/images then your html code should reflect that:

<img src="images/picture.jpg">

Also make sure that the permissions are correct on the images directory.
 
Old 03-10-2003, 10:20 AM   #8
mawarsha
Member
 
Registered: Feb 2003
Distribution: RedHat 8.0, Mandrake 9.1
Posts: 54

Rep: Reputation: 15
I don't know if I am understanding your problem correctly, but put the graphic that isn't loading in the same directory as the page. If it still doesn't load, troubleshoot from there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Stats Page For Apache? carlosinfl Linux - Software 16 11-27-2005 11:05 AM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 01:35 PM
apache first page tpark Linux - Networking 4 02-10-2004 11:34 PM
Apache default page?? andy18 Linux - General 6 07-16-2003 03:57 AM
About Apache, if i want to have page name before IP address thep Linux - Newbie 1 04-15-2001 11:59 PM


All times are GMT -5. The time now is 04:28 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration