LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-22-2013, 04:41 AM   #1
vignesh4sh
Member
 
Registered: Oct 2012
Posts: 69

Rep: Reputation: Disabled
SSL redirect issue in confluence


Hi,
I have Installed Jira and confluence and configured Vhost like example.com and testexample.com with ssl.
When i hit testexample.com it directs to example.com.
example.com VHOST:
Quote:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName example.com
# DocumentRoot /var/www/example/public/
Options Indexes FollowSymLinks

SSLEngine On
SSLCertificateFile /var/www/example/ssl/example.crt
SSLCertificateKeyFile /var/www/example/ssl/example.key
SetEnvIf User-Agent ".MSIE.*" nokeepalive ssl-unclean-shutdown
SSLVerifyClient None
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
SSLProxyEngine On
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://example.com:7170/
ProxyPassReverse / http://example.com:7170/
ErrorLog /var/www/example/logs/error.log
# alert, emerg.
LogLevel warn
CustomLog /var/www/example/logs/ssl_access.log combined
</VirtualHost>
This is testexample.com
Quote:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin example.com
ServerName example.com
DocumentRoot /var/www/example/public/
Options Indexes FollowSymLinks

SSLEngine On
SSLCertificateFile /var/www/testexample/ssl/testexample.crt
SSLCertificateKeyFile /var/www/testexample/ssl/testexample.key
SetEnvIf User-Agent ".MSIE.*" nokeepalive ssl-unclean-shutdown
SSLVerifyClient None

<Proxy *>
Order deny,allow
Allow from all
</Proxy>
SSLProxyEngine On
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://testexample:7370/
ProxyPassReverse / http://testexample:7370/
ErrorLog /var/www/testexample/logs/error.log
LogLevel warn
CustomLog /var/www/testexample/logs/ssl_access.log combined
</virtualhost>
When I hit example.com it works fine.
when i hit testexample.com it redirects to example.com.

please suggest me any idea.I have stucked in this conf.

thanks

Last edited by vignesh4sh; 01-22-2013 at 04:43 AM.
 
Old 01-23-2013, 04:22 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
ProxyPass / http://testexample:7370/
ProxyPassReverse / http://testexample:7370/
Note that both vhosts have the same ServerName (ServerName example.com)
Also make sure that your server can resolve the host testexample (not a FQDN), or use its IP address instead

Regards

Last edited by bathory; 01-24-2013 at 12:15 AM.
 
Old 01-24-2013, 04:28 AM   #3
vignesh4sh
Member
 
Registered: Oct 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
Thanks for reply.
I have changed the server name and proxy configuration is also righty. But, still i getting the same issue.
when i hit example.com it redirects to testexample.com

This is my apache Error log
[Tue Jan 22 07:15:36 2013] [error] [client ] File does not exist: /var/www/testexample/public/rest, referer: http://testexample.com/display/CDM/CDM+Home
[Tue Jan 22 07:16:35 2013] [error] [client 182.72.26.22] File does not exist: /var/www/testexample/public/rest, referer: http://testexample/display/CDM/CDM+Home

Please give me suggestions.

Thanks

Last edited by vignesh4sh; 01-24-2013 at 04:32 AM.
 
Old 01-24-2013, 06:00 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
I have changed the server name and proxy configuration is also righty. But, still i getting the same issue.
when i hit example.com it redirects to testexample.com
I guess you mean the other way around, i.e sending to testexample.com goes to example.com.
You didn't mention your distro, but if it's ubuntu like in your profile image, you should use a2ensite to enable the 2nd vhost. To verify the vhosts run:
Code:
apachectl -S
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Confluence PID issue. (Removing/clearing stale PID file) vignesh4sh Linux - Server 5 12-05-2012 07:14 AM
SSL Redirect cbtshare Linux - Newbie 20 01-01-2011 03:49 AM
Q: SMTP redirect to exchange over SSL r0b0jerk Linux - Networking 2 10-06-2009 12:07 PM
Redirect to SSL-enabled website. haxpor Linux - Networking 1 03-20-2007 02:35 AM
Debian redirect apache to apche-ssl klyshi Linux - Software 1 10-04-2005 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration