![]() |
|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
I keep getting these errors on apache.
Code:
[Thu Jul 10 10:18:56 2008] [error] [client myipaddress] File does not exist: /path to/error, referer: http://www.mywebsite.com/index.php I am not accessing error just visiting mywebsite.com . when the above errors occur. These file donot exist on the server. Checked all the php files and none of them are calling for a file called error . Have a .htaccess file that blocks alot of unwanted ipaddresses. Even the ipaddresses blocked by .htacces file try to access the /pathto/error . .htaccess file has no custom error documents extra. any ideas as to why this is happening thanks
__________________
Freebsd 7 64 bit apache2.2 php5 mysql5 |
|
|||
![]()
This is kind of out of scope of the forum but you could post the whole of your index.php and we might be able to help you figure it out. If the log actually says "File does not exist: /path to/error" it looks like you were supposed to edit a variable pointing to the correct place for 'error' but haven't yet done so.
|
|
|||
![]()
httpd.conf:
Post your virtualhost config. |
|
|||
![]()
virtual host settings in the httpd.conf file
Code:
# Use name-based virtual hosting. # #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 webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost> NameVirtualHost *:80 <VirtualHost *:80> ServerName www.website1.com ServerAlias website1.com *.website1.com ServerAdmin admin@website1.com DocumentRoot /pathto/site RewriteEngine on Options +FollowSymlinks </VirtualHost> <VirtualHost *:80> ServerName www.website2.co.uk ServerAlias website2.co.uk *.website2.co.uk ServerAdmin admin@website1.com DocumentRoot /pathto/website12 Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website3.co.uk ServerAlias website3.co.uk *.website3.co.uk ServerAdmin admin@website1.com DocumentRoot /pathto/website3 Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website4.com ServerAlias website4.com *.website4.com ServerAdmin admin@website1.com DocumentRoot /pathto/art Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website5.com ServerAlias website5.com *.website5.com ServerAdmin admin@website1.com DocumentRoot /pathto/site5 Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website6.net ServerAlias website6.net *.website6.net ServerAdmin admin@website1.com DocumentRoot /pathto/site6 Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website7.com ServerAlias website7.com *.website7.com ServerAdmin website1@gmail.com DocumentRoot /pathto/site7 #Options +FollowSymlinks RewriteEngine on #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule ^/(.*) index.php </VirtualHost> <VirtualHost *:80> ServerName www.website8.com ServerAlias website8.com *.website8.com ServerAdmin admin@website1.com DocumentRoot /pathto/site8 #Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website9.com ServerAlias website9.com *.website9.com ServerAdmin admin@website1.com DocumentRoot "/pathto/site9" Options +FollowSymlinks RewriteEngine on RewriteRule ^/sitedetails_([0-9]+).html /index.php?do=sitedetails&id=$1 [L] RewriteRule ^/comments_([0-9]+).html /index.php?do=comments&id=$1 [L] RewriteRule ^/category/([a-z_0-9]+)/ /index.php?cat_id=$1 [L] RewriteRule ^/user_([0-9]+).html /index.php?do=user&id=$1 [L] </VirtualHost> <VirtualHost *:80> ServerName www.website10.com ServerAlias website10.com *.website10.com ServerAdmin website1@gmail.com DocumentRoot /pathto/site10 Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website11.co.uk ServerAlias website11.co.uk *.website11.co.uk ServerAdmin admin@googlemail.com DocumentRoot /pathto/site11 Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website12.com ServerAlias website12.com *.website12.com ServerAdmin website1@gmail.com DocumentRoot /pathto/site12 Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website13.co.uk ServerAlias website13.co.uk *.website13.co.uk ServerAdmin website1@gmail.com DocumentRoot /pathto/site13 Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website14.com ServerAlias website14.com *.website14.com ServerAdmin admin@website1.com DocumentRoot /pathto/site14 Options +FollowSymlinks RewriteEngine on </VirtualHost> <VirtualHost *:80> ServerName www.website15.com ServerAlias website15.com *.website15.com ServerAdmin admin@website1.com DocumentRoot /pathto/site15 Options +FollowSymlinks RewriteEngine on </VirtualHost>
__________________
Freebsd 7 64 bit apache2.2 php5 mysql5 |
|
|||
![]()
ijk;
I saw the other thread you started, http://daemonforums.org/showthread.php?t=1305. It's time to upgrade. If what you have listed as your server config (Freebsd 5.4-RELEASE apache2.0.63 php5.2.6 zend optimzer v3.3.0 mysql5.0.51 postfix2.5.1) is all that is on the "box" you have a few choices. Upgrade route: #1 - http://www.daemonology.net/freebsd-upgrade-5.4-to-6.0/ #2 - Backup what you need from that server to another machine and start over with 7.0. Re; Apache error Something tells me that not all the sites listed in the "VHost" config are producing the error. It's only one or, maybe two right? And, the site and or sites producing the errors are using a CMS, maybe a Forum or, a script. If It's a script disable it and see what happens. If it's one of the other two they aren't setup correctly or, they aren't compatable with the server enviroment. |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pkgdb errors | maxrussell | FreeBSD Ports and Packages | 1 | 22nd May 2009 11:06 AM |
Upgrade Apache 1.3 mod_ssl to Apache 2.2 | beandip | FreeBSD Ports and Packages | 11 | 26th March 2009 09:12 PM |
fsck reports errors but does not fix them. | map7 | FreeBSD General | 13 | 2nd December 2008 10:45 PM |
PATCH errors during portupgrade | shinjii | FreeBSD Installation and Upgrading | 4 | 23rd June 2008 02:47 AM |
lang/pcc build errors | JMJ_coder | NetBSD Package System (pkgsrc) | 1 | 17th June 2008 02:00 AM |