LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache first page (https://www.linuxquestions.org/questions/linux-software-2/apache-first-page-48671/)

kelper 03-07-2003 12:43 AM

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)

Crashed_Again 03-07-2003 11:33 AM

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.

gonus 03-09-2003 07:16 PM

quick apachee ? Once apachee is intalled where are the files to edit and post htm files.

rnturn 03-09-2003 07:59 PM

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

gonus 03-09-2003 08:19 PM

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

BaerRS 03-09-2003 08:27 PM

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

kelper 03-09-2003 09:05 PM

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.


mawarsha 03-10-2003 09:20 AM

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.


All times are GMT -5. The time now is 05:13 PM.