How do I fix this error?

Roparadise

BANNED
Joined
May 25, 2011
Messages
784
Reaction score
1,422
I finally decided to restart my image host after a month of being down. So I went with a linux based vps this time over shared hosting.

the html page where you view the images at wont come up. I keep getting the following error

404 Not Found

The requested URL /img-50ae498f6459a.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at mysite.com Port 80

My VPS has the following specs:

Centos v6.3 x86_64
Apache 2.2.23
PHP 5.3.18
Perl 5.8.8
Mysql 5.1.65-cll
kernel version 2.6.32-042stab061.2
 
There isn't a lot of information to go by but the file "/img-50ae498f6459a.html", which is missing, looks to be a re-written URL. e.g. the physical (virtual? lol) file does not exist on the server, and you know that. It could be that mod_rewrite (Apache module) is not in installed on your server.

Assuming that is correct, and assuming you are using WHM/cPanel on your VPS, you can re-compile Apache to include the "mod_rewrite" module by running "EasyApache" withing WHM and running through the few steps.
 
There isn't a lot of information to go by but the file "/img-50ae498f6459a.html", which is missing, looks to be a re-written URL. e.g. the physical (virtual? lol) file does not exist on the server, and you know that. It could be that mod_rewrite (Apache module) is not in installed on your server.

Assuming that is correct, and assuming you are using WHM/cPanel on your VPS, you can re-compile Apache to include the "mod_rewrite" module by running "EasyApache" withing WHM and running through the few steps.

I dont see the mod_rewrite module when i tried to re-compile apache,but i did see i could upload a apache profile to use. Is there any good place to get a profile with mod_rewrite installed?
 
I dont see the mod_rewrite module when i tried to re-compile apache,but i did see i could upload a apache profile to use. Is there any good place to get a profile with mod_rewrite installed?

It is really easy to add it your self just run

yum install mod_rewrite

Then edit the next 2 lines in your httpd.conf

Change AllowOverride None to AllowOverride All in the directory tags that say <Directory "/var/www/html">

Then make sure this line is in your httpd.conf and not commented out


LoadModule rewrite_module modules/mod_rewrite.so

It should work fine after you restart apache and you have done what I just said.
 
Back
Top