|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
constant 404 errors
Until just recently my aopache server has workded great. Now I have a problem, I cannot access my server from outside 127.0.0.1, and when there is no / after my URL's then I get a 404 error, I have the hostname set to a dynamic redirector which has always worked in the past, any ideas?
|
|
#2
|
|||
|
|||
|
RE: constant 404 errors
Hey Mr. Pickle,
in your httpd.conf file look for the section 'DocumentRoot' it will say something like 'DocumentRoot /var/www' Do you have a trailing slash in there if so it will require it in your url. Same goes for 'Directory /var/www' If that doesent work there is always mod_rewrite feature in apache. I even find this a bit confusing at times. This should only be used if all else fails. well here it is Code:
# mod_rewrite configuration for adding trailing-slash
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/([/A-Za-z0-9_]*)?([A-Za-z0-9_]+)$
RewriteRule ^(.*) http://%{SERVER_NAME}$1/ [R]
let me know |
|
#3
|
|||
|
|||
|
RE: constant 404 errors
Sorry, I fixed it, teh external errors were because of my router, All the computyers on the network were restarted so they all got new IPs. And the other was becauce I had http:// in front of it, which for some reason killed it. Thats it, sorry I for got to reply sooner
|
|
#4
|
|||
|
|||
|
RE: constant 404 errors
Yea, I hate DHCP. Always use static IP's Well I'm glad you got it fixed anyway.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > constant 404 errors |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|