LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   appache configuration issue!!! (https://www.linuxquestions.org/questions/linux-newbie-8/appache-configuration-issue-884759/)

anishkumarv 06-06-2011 02:50 AM

appache configuration issue!!!
 
Hi all,


Code:

<VirtualHost *:80>
ServerName www.test.anish.com
ServerAlias test.anish.com
DocumentRoot "/usr/local/tomcat/webapps/HCMOne_ver6"
<Directory "/usr/local/tomcat/webapps/HCMOne_ver6">
DirectoryIndex index.jsp index.html
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
JkMount /HCMOne_ver6* ajp13
RewriteEngine On
RewriteLogLevel 5
RewriteLog logs/internal_rewrite_log
RewriteCond %{REQUEST_URI} !^/HCMOne_ver6/.*\.(jpe?g|gif|png|css|js)
RewriteRule ^(.*)$ /HCMOne_ver6/$1 [L,PT]
</VirtualHost>

This is my appache configuration entry!!


Actually my problem is when i access the test.anish.com it takes the index.html page as like this

but i want like this what are the configuration i need to change for that?? please guide me to solve this thread!!!

bathory 06-06-2011 06:25 AM

Hi,

Since the vhost DocumentRoot is /usr/local/tomcat/webapps/HCMOne_ver6, the rewrite stuff is useless as the RewriteCond will never match.
Unless you mean something else, the URL http://www.test.anish.com/index.html points to the /index.html URI (without a HCMOne_ver6), so no rewrite happens.

Regards

anishkumarv 06-06-2011 09:55 AM

Hi bathory,

When I call http://test.anish.com/login I see a login form.

When I submit the form I go to http://test.anish.com/auth and get authenticated.

and it should redirect to http://test.anish.com/index but it redirects instead to http://test.anish.com/Context/index

How can I get rid of that context path? Is there anything related to Proxy settings..???

Note this problem iam facing only in Google chrome Alone!!! it works in Firefox, safari and i.e

I am confused!! :-( :-(

bathory 06-06-2011 12:23 PM

Hi,

If it works with all browsers except one, you should check the settings of this browser.
Maybe you have to clear its cache and try again. Or maybe you need to configure your application, so it's aware of the chrome user-agent string.

Regards

anishkumarv 06-06-2011 08:13 PM

Hi bathory,


I too guess the same... but through ip if i access the application means it works great.


http://stackoverflow.com/questions/3...through-apache

pls view the above link...even though i did the changes which they mentioned in the post , but its working some times only...so 100% its not a browser issue..


1. I think for chrome we need to do some extra configuration in appache .

2. or we have to do anything in appache proxy settings!!

bathory 06-07-2011 12:32 AM

Hi,

Quote:

I too guess the same... but through ip if i access the application means it works great.
Looks like chrome does some sort of dns prefetching, so try to turn it off and see f it works.

Regards

anishkumarv 06-07-2011 02:23 AM

Hi bathory,

Still iam facing the Same Problem....:-( :-(

bathory 06-07-2011 04:04 AM

How is your apache setup now?
You're still using mod_jk to serve jsp pages, or you've changed it to a reverse proxy?

anishkumarv 06-07-2011 09:13 AM

Hi dude,

Ya we are using MOD_JK only...

bathory 06-07-2011 11:27 AM

Doh, it may worth trying to use mod_proxy ajp as in the link you've posted above.


All times are GMT -5. The time now is 07:04 PM.