Posted: Sat Jul 19, 2003 9:28 pm Post subject: How to change the error message on apache?
Ok, i wanna change the 404 and etc on my apache server.
I know the .htaccess and etc.
ErrorDocument 404 ....
But that does not work.
Is it something to do with the:
Alias /error/ "C:/Program Files/Apache Group/Apache2/htdocs/error/"
Alias /error/ "@exp_errordir@/"
<Directory "@exp_errordir@/">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en de es fr it nl sv
ForceLanguag
</Directory>
or what? any help?
Sponsor Sponsor
UBC_Wiskatos
Posted: Sat Jul 19, 2003 11:59 pm Post subject: Re: How to change the error message on apache?
Amailer wrote:
Ok, i wanna change the 404 and etc on my apache server.
I know the .htaccess and etc.
ErrorDocument 404 ....
But that does not work.
Is it something to do with the:
Alias /error/ "C:/Program Files/Apache Group/Apache2/htdocs/error/"
Alias /error/ "@exp_errordir@/"
<Directory "@exp_errordir@/">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en de es fr it nl sv
ForceLanguag
</Directory>
or what? any help?
This is what the .htaccess file looks like for my site:
Posted: Sun Jul 20, 2003 1:51 am Post subject: (No subject)
yeah... if your .htaccess file isnt working you may have your permissions set wrong in your httpd.conf file...
theres a section in there that looks like
Quote:
<Directory "C:/path/to/files">
AllowOverride None
Order allow,deny
Allow from All
</Directory>
you'll have to change it to
Quote:
<Directory "C:/path/to/files">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
so that you can change stuff with your .htaccess file
UBC_Wiskatos
Posted: Sun Jul 20, 2003 2:13 pm Post subject: (No subject)
Blade wrote:
yeah... if your .htaccess file isnt working you may have your permissions set wrong in your httpd.conf file...
theres a section in there that looks like
Quote:
<Directory "C:/path/to/files">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
you'll have to change it to
Quote:
<Directory "C:/path/to/files">
AllowOverride all
Order allow,deny
Allow from all
</Directory>
so that you can change stuff with your .htaccess file
Yeah, I'm not sure how that goes in Windows, because I work with Linux and the CHMOD you set is 666 I believe.
Blade
Posted: Sun Jul 20, 2003 4:21 pm Post subject: (No subject)
you cant chmod in windows... you just ahve to set the override in the httpd.conf file for your .htaccess files to work properly
Amailer
Posted: Sun Jul 20, 2003 5:21 pm Post subject: (No subject)
Blade wrote:
yeah... if your .htaccess file isnt working you may have your permissions set wrong in your httpd.conf file...
theres a section in there that looks like
Quote:
<Directory "C:/path/to/files">
AllowOverride None
Order allow,deny
Allow from All
</Directory>
you'll have to change it to
Quote:
<Directory "C:/path/to/files">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
so that you can change stuff with your .htaccess file
i did not find anything like that....
code:
<Directory "@exp_errordir@/">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en de es fr it nl sv
ForceLanguag
</Directory>
is all i found
Sponsor Sponsor
Blade
Posted: Sun Jul 20, 2003 7:41 pm Post subject: (No subject)
well you could try changing the 'Override None' theere to 'Override All'. Restart your server, then see if your .htaccess files work
UBC_Wiskatos
Posted: Mon Jul 21, 2003 6:27 pm Post subject: (No subject)
Blade wrote:
you cant chmod in windows... you just ahve to set the override in the httpd.conf file for your .htaccess files to work properly
I know you can't CHMOD in Windows, but if he is running NTFS, he can set file permissions (that is, the equivalent of CHMOD).
Amailer
Posted: Mon Jul 21, 2003 8:01 pm Post subject: (No subject)
ya ya ya,
Permissions everyone/user what ever
is like CHOMD...for windows though :/