|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Error Document
Hi there, this should have been REALLY simple to set up but for some reason it isn't working.
Ok I have this in my VirtualHost deffinition in the httpd.conf Code:
ErrorDocument 401 /errors/401.php #Authorisation Required
ErrorDocument 403 /errors/403.php #Forbidden Access
ErrorDocument 404 /errors/404.php #File Not Found
ErrorDocument 500 /errors/500.php #Internal Server Error
Now the files exist, their permissions are 775, owned by apache and in the web group. Yet I'm getting this error in the log file: Quote:
|
|
#2
|
|||
|
|||
|
>> their permissions are 775
mod_php's scripts just need to be readable by the user you defined for User directive. The permission should be the same as plain html file (usually 644). >> Now the files exist Make sure you know what your docroot is. /errors/401.php should be relative to your docroot. >> ErrorDocument 401 /errors/401.php #Authorisation Required Practically, do not put comment line on the same line. Technically, not all daemon can parse config file correctly. Please post this kind of message to Apache forum next time. |
|
#3
|
|||
|
|||
|
Ok thanks. Thought it was a beginners question though.
|
|
#4
|
||||
|
||||
|
In case that didn't work, trying using the full url in your ErrorDocument line. That fixed the same problem for me.
~ishnid
__________________
~ishnid; Have you tried: [ search.cpan.org | perldoc | Java API | mysql.com | google ] Apostrophes are NOT used for possessive pronouns or for noun plurals, including acronyms. |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Error Document |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|