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 |
Do you have an index.html file in /home/cpc?
Check that the file permission. |
I do have index.html in /home/cpc and the permissions are set to
Xrwxr-xr-x. |
What is the URL you are using to access the page?
|
|
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. :confused:
|
Don't you get "Object Not Found" page?
|
What about the perms on the directories?
Please post the output from ls -l /home; ls -lR /home/cpc; ls -lR /home/dilberim; |
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 |
What is in /var/log/httpd/error_log?
tail /var/log/httpd/error_log -n 20; |
Code:
[Sat Jan 03 11:14:58 2004] [warn] child process 11481 still did not exit, sending a SIGTERM |
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/ |
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.
|
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.
|
All times are GMT -5. The time now is 06:39 AM. |