Find your httpd execution file. On my machine, it is under /usr/sbin/
Executing it with a argument -v gives you the apache version.
$/usr/sbin> ./httpd2 -v
Server version: Apache/2.2.0
Server built: Dec 27 2006 12:50:52
Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts
Wednesday, November 05, 2008
Sunday, October 19, 2008
Configure 404 on Apache and Tomcat
Its simple.
To configure custom error pages on apache,
in your virtual host configuration
<virtualhost 127.0.0.1:80>
DocumentRoot /www/example1
ServerName www.example1.com
ErrorDocument 404 /errordocs/404.html
</virtualhost>
And in tomcat, have something like
<web-app>
<error-page>
<error-code>404</error-code>
<location>/error404.jsp</location>
</error-page>
...
<web-app>
in your web.xml
To configure custom error pages on apache,
in your virtual host configuration
<virtualhost 127.0.0.1:80>
DocumentRoot /www/example1
ServerName www.example1.com
ErrorDocument 404 /errordocs/404.html
</virtualhost>
And in tomcat, have something like
<web-app>
<error-page>
<error-code>404</error-code>
<location>/error404.jsp</location>
</error-page>
...
<web-app>
in your web.xml
Wednesday, November 28, 2007
Today I had a chance to create a custom task in ant.
I created a new class extending Task and had few instance variables to suit my business needs. Then I overridden the execute method to validate a condition and based on the output, a property in build.xml was set to either true or false. Tommorrow I will post the sample code!
I also worked on Apache redirection using regular expression rules. It worked very well. Hopefuly I would post the procedure tommorrow.
Bye for now....
I created a new class extending Task and had few instance variables to suit my business needs. Then I overridden the execute method to validate a condition and based on the output, a property in build.xml was set to either true or false. Tommorrow I will post the sample code!
I also worked on Apache redirection using regular expression rules. It worked very well. Hopefuly I would post the procedure tommorrow.
Bye for now....
Subscribe to:
Posts (Atom)