LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-03-2004, 01:17 AM   #1
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Rep: Reputation: 30
apache problem


Hi everyone...
I am playing around w/ virtual host ...I have two different domain names. When i go to my website, i get this error:
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster
Error 404

When i start httpd, it doesn't give me an error. Where is my problem?

When i go to http://myipaddress, i get the test page.

Code:
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
    ServerAdmin XXXX@yahoo.com
    DocumentRoot /home/cpc
    ServerName XXXX.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *:80>
	ServerAdmin YYYY@yahoo.com
	DocumentRoot /home/dilberim
	ServerName YYYY.com
</VirtualHost>

Last edited by dilberim82; 01-03-2004 at 01:45 AM.
 
Old 01-03-2004, 03:12 AM   #2
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Do you have an index.html file in /home/cpc?
Check that the file permission.
 
Old 01-03-2004, 09:24 AM   #3
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Original Poster
Rep: Reputation: 30
I do have index.html in /home/cpc and the permissions are set to
Xrwxr-xr-x.
 
Old 01-03-2004, 09:28 AM   #4
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
What is the URL you are using to access the page?
 
Old 01-03-2004, 09:54 AM   #5
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Original Poster
Rep: Reputation: 30
www.customizedpcsolutions.com
&
www.dilberim.com
 
Old 01-03-2004, 09:57 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
They both seem to be working for me, just nothing on the pages. One states there is no data and the other just loads with a blank page.
 
Old 01-03-2004, 10:03 AM   #7
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Original Poster
Rep: Reputation: 30
Don't you get "Object Not Found" page?
 
Old 01-03-2004, 10:16 AM   #8
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
What about the perms on the directories?
Please post the output from
ls -l /home;
ls -lR /home/cpc;
ls -lR /home/dilberim;

Last edited by g-rod; 01-03-2004 at 10:19 AM.
 
Old 01-03-2004, 10:22 AM   #9
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Original Poster
Rep: Reputation: 30
I am not using any of the files in any other directory... Permissions dont matter in those folders. I am only using the files in /home/cpc directory

/home:
total 8
drwxr-xr-x 4 cpc cpc 4096 Jan 3 10:57 cpc
drwxr-xr-x 2 dilberim dilberim 4096 Jan 3 02:12 dilberim

/home/cpc:
total 152
-rwxr-xr-x 1 cpc cpc 199 Jan 3 01:04 about.html
-rwxr-xr-x 1 cpc cpc 7464 Jan 3 01:04 about.swf
-rwxr-xr-x 1 cpc cpc 7589 Jan 3 01:04 button2.swf
-rwxr-xr-x 1 cpc cpc 7607 Jan 3 01:05 button3.swf
-rwxr-xr-x 1 cpc cpc 7305 Jan 3 01:05 button4.swf
-rwxr-xr-x 1 cpc cpc 7464 Jan 3 01:05 button5.swf
drwxr-xr-x 2 cpc cpc 4096 Jan 3 00:59 Buttons
-rwxr-xr-x 1 cpc cpc 210 Jan 3 01:05 contact.html
-rwxr-xr-x 1 cpc cpc 7713 Jan 3 01:05 contact.swf
-rwxr-xr-x 1 cpc cpc 209 Jan 3 01:05 coupons.html
-rwxr-xr-x 1 cpc cpc 7449 Jan 3 01:05 coupons.swf
-rwxr-xr-x 1 cpc cpc 573 Jan 3 01:05 index.htm
-rwxr-xr-x 1 cpc cpc 573 Jan 3 10:21 index.html
-rwxr-xr-x 1 cpc cpc 4726 Jan 3 01:05 left.htm
-rwxr-xr-x 1 cpc cpc 490 Jan 3 01:05 main.htm
-rwxr-xr-x 1 cpc cpc 234 Jan 3 01:05 mission.html
-rwxr-xr-x 1 cpc cpc 7484 Jan 3 01:05 mission.swf
drwxr-xr-x 2 cpc cpc 4096 Jan 3 00:59 Pictures
-rwxr-xr-x 1 cpc cpc 333 Jan 3 01:05 sales.html
-rwxr-xr-x 1 cpc cpc 7398 Jan 3 01:05 sales.swf
-rwxr-xr-x 1 cpc cpc 490 Jan 3 01:05 service.html
-rwxr-xr-x 1 cpc cpc 7305 Jan 3 01:05 service.swf
-rwxr-xr-x 1 cpc cpc 373 Jan 3 01:05 topleft.htm
-rwxr-xr-x 1 cpc cpc 186 Jan 3 01:05 topright.htm
-rwxr-xr-x 1 cpc cpc 1019 Jan 3 01:05 upgrade.html
-rwxr-xr-x 1 cpc cpc 7607 Jan 3 01:05 upgrade.swf

/home/cpc/Buttons:
total 12
-rw-r--r-- 1 cpc cpc 8704 Jan 3 00:59 custpcsolutions.fla

/home/cpc/Pictures:
total 628
-rw-r--r-- 1 cpc cpc 3573 Jan 3 00:59 black_drive.jpg
-rw-r--r-- 1 cpc cpc 16128 Jan 3 00:59 case01.jpg
-rw-r--r-- 1 cpc cpc 10787 Jan 3 00:59 caseinside.jpg
-rw-r--r-- 1 cpc cpc 19124 Jan 3 00:59 case.jpg
-rw-r--r-- 1 cpc cpc 3195 Jan 3 00:59 cdrom.jpg
-rw-r--r-- 1 cpc cpc 26998 Jan 3 00:59 celeron.bmp
-rw-r--r-- 1 cpc cpc 3381 Jan 3 00:59 compcase.jpg
-rw-r--r-- 1 cpc cpc 226698 Jan 3 00:59 compfixing2.bmp
-rw-r--r-- 1 cpc cpc 40278 Jan 3 00:59 compfixing.bmp
-rw-r--r-- 1 cpc cpc 130470 Jan 3 00:59 computersmoke.bmp
-rw-r--r-- 1 cpc cpc 10258 Jan 3 00:59 computersmoke.jpg
-rw-r--r-- 1 cpc cpc 6937 Jan 3 00:59 cp_9200.jpg
-rw-r--r-- 1 cpc cpc 7794 Jan 3 00:59 intel_cpu_retail.jpg
-rw-r--r-- 1 cpc cpc 49642 Jan 3 00:59 lcdndkeyboard.bmp
-rw-r--r-- 1 cpc cpc 5625 Jan 3 00:59 maxtor_hd.jpg
-rw-r--r-- 1 cpc cpc 4747 Jan 3 00:59 memory.jpg
-rw-r--r-- 1 cpc cpc 3783 Jan 3 00:59 network_card.jpg
-rw-r--r-- 1 cpc cpc 19593 Jan 3 00:59 noblesse_lcd_28_11.jpg
-rw-r--r-- 1 cpc cpc 11907 Jan 3 00:59 p4al800.jpg
-rw-r--r-- 1 cpc cpc 2852 Jan 3 00:59 speakers.gif

/home/dilberim:
total 8632
-rw-r--r-- 1 root root 35016 Jan 3 02:12 httpd.conf
-rw-r--r-- 1 dilberim dilberim 4386176 Jan 2 22:44 WinXP_EN_HOM_BF.EXE
-rw-r--r-- 1 dilberim dilberim 4389760 Jan 2 22:44 WinXP_EN_PRO_BF.EXE

Last edited by dilberim82; 01-03-2004 at 10:23 AM.
 
Old 01-03-2004, 10:30 AM   #10
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
What is in /var/log/httpd/error_log?
tail /var/log/httpd/error_log -n 20;
 
Old 01-03-2004, 10:42 AM   #11
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Original Poster
Rep: Reputation: 30
Code:
[Sat Jan 03 11:14:58 2004] [warn] child process 11481 still did not exit, sending a SIGTERM
[Sat Jan 03 11:14:58 2004] [warn] child process 11482 still did not exit, sending a SIGTERM
[Sat Jan 03 11:15:02 2004] [notice] caught SIGTERM, shutting down
[Sat Jan 03 11:15:40 2004] [notice] Digest: generating secret for digest authentication ...
[Sat Jan 03 11:15:40 2004] [notice] Digest: done
[Sat Jan 03 11:15:41 2004] [error] [client 192.168.1.1] File does not exist: /home/dilberim/cpc, referer: http://www.customizedpcsolutions.com/
[Sat Jan 03 11:15:41 2004] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Sat Jan 03 11:15:48 2004] [error] [client 192.168.1.1] File does not exist: /home/dilberim/dilberim, referer: http://www.dilberim.com/
[Sat Jan 03 11:26:24 2004] [error] [client 24.190.120.61] File does not exist: /home/dilberim/dilberim, referer: http://www.dilberim.com/
[Sat Jan 03 11:27:21 2004] [error] [client 24.190.120.61] File does not exist: /home/dilberim/cpc, referer: http://www.customizedpcsolutions.com/
k from the log file, it seems like it is looking in the folder /home/dilberim/cpc for www.customizedpcsolutions.com and the folder /home/dilberim/dilberim for www.dilberim.com, but why would it do that?
 
Old 01-03-2004, 11:02 AM   #12
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Original Poster
Rep: Reputation: 30
What is this mean?

[Sat Jan 03 12:02:53 2004] [error] [client 192.168.1.1] Directory index forbidde
n by rule: /home/dilberim/, referer: http://www.customizedpcsolutions.com/
[Sat Jan 03 12:02:58 2004] [error] [client 192.168.1.1] Directory index forbidde
n by rule: /home/dilberim/, referer: http://www.dilberim.com/
 
Old 01-03-2004, 11:42 AM   #13
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
It means it cannot find the default index.html file and directory browsing is not allowed. You don't want directory browsing enabled. Can you send my you entire httpd.conf via email. So I can look the whole thing.
 
Old 01-03-2004, 05:37 PM   #14
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Original Poster
Rep: Reputation: 30
code

I am sorry to get back to you so late...Something happened to my internet connection & i have been working on it since 2 PM to get it to work. I finally got it fixed now, and i'll e-mail you the code as soon as i can. Thanks for everything so far.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
problem with apache 1.3.27 czarherr Linux - Software 2 01-10-2004 11:38 AM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 06:32 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:12 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