LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   apache problem (https://www.linuxquestions.org/questions/linux-general-1/apache-problem-131071/)

dilberim82 01-03-2004 01:17 AM

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>


g-rod 01-03-2004 03:12 AM

Do you have an index.html file in /home/cpc?
Check that the file permission.

dilberim82 01-03-2004 09:24 AM

I do have index.html in /home/cpc and the permissions are set to
Xrwxr-xr-x.

g-rod 01-03-2004 09:28 AM

What is the URL you are using to access the page?

dilberim82 01-03-2004 09:54 AM

www.customizedpcsolutions.com
&
www.dilberim.com

trickykid 01-03-2004 09:57 AM

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:

dilberim82 01-03-2004 10:03 AM

Don't you get "Object Not Found" page?

g-rod 01-03-2004 10:16 AM

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

dilberim82 01-03-2004 10:22 AM

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

g-rod 01-03-2004 10:30 AM

What is in /var/log/httpd/error_log?
tail /var/log/httpd/error_log -n 20;

dilberim82 01-03-2004 10:42 AM

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?

dilberim82 01-03-2004 11:02 AM

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/

g-rod 01-03-2004 11:42 AM

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.

dilberim82 01-03-2004 05:37 PM

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.