03-11-2009
apache, non-standard ports, and ssl woes
I have a Web app running on apache. When I run apache on 80 and 443 it's fine. Within the application, depending on the directory it redirects to http or https as needed.
views OK:
http://something.com/app
go to
http://something.com/app/secure redirects to https:/something.com/app/secure
Great, but...
Now I'm trying to run this apache instance on non-standard ports (e.g. 8080 and 8443). I can view the app, but whenever it tries to redirect it doesn't change the port number.
views OK:
http://something.com:8080/app
go to
http://something.com:8080/app/secure redirects to https:/something.com:8080/app/secure
which obviously won't work, but if I go directly to https:/something.com:8443/app/secure it loads fine.
I could change the app so that it puts the port numbers in, but what I'm really trying to do is use a second apache instance running on 80 and 443 as a proxy.
I want people to go to
http://something.com/app which is a reverse proxy for
http://something.com:8080/app and that
https://something.com/app is a reverse proxy for
https://something.com:8443/app.
The problem with the above is that when someone goes to
http://something.com/app/secure it redirects to https:/something.com:8080/app/secure.
I thought about using a rewriterule, but I'm not sure if that can even work. Any advice?
Thanks,
Ian
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi folks.
i know that this is not a realī unix problem, itīs an apache-webserver problem, but maybe you can help me?
i have installed apache & mod_ssl, done a certificate, and configured my server well, but apache only understands "http://servername", not "https://servername".
any ideas?
... (1 Reply)
Discussion started by: loitschix
1 Replies
2. Solaris
Hi All,
I'm attempting to build Apache 1.3.27 on a new Solaris 9 system. I am using
following "Option 2" in the INSTALL of the mod_ssl-2.8.12-1.3.27, and I'm
stumped.
After I configure and make all the required components
the make of the Apache server itself stops at:
flex... (2 Replies)
Discussion started by: b_manu78
2 Replies
3. HP-UX
When everytime I start apache, it asks me to enter pass phrase, and I have to enter the pass phrase manually.
I would like to write a script to monitor the apache, such that it will check the apache status, if it is stopped, then start it automatically. However, the script fails since the pass... (1 Reply)
Discussion started by: alfredo
1 Replies
4. Solaris
We are running Apache 1.3 on solaris 8 we have renewed our ssl key with verisign. They have confirmed renewel and new ssl certifcate is appended to the end of the email.
out apache config file has two directives
SSLCertificateFile /export/home/apache/conf/ssl.crt/xxxx.crt
SSLCertificationKeyFile... (2 Replies)
Discussion started by: Tirmazi
2 Replies
5. Web Development
I had to update the CA Trusted Chains on two different UNIX servers running Apache. After looking through some documentation, it said that after the new CA's were installed, I had to run the /usr/ccs/bin/make command in order to create the symbolic links for apache to recognize the certs. On the... (1 Reply)
Discussion started by: camerodity
1 Replies
6. Web Development
Hi
i'm looking for some advice on apache ssl routing for 2 url.Fyi one url is certificate is verified by GeoTrust and another url on the other site certificate is verified by Verisgn.Is that possible to routing between this two url.
Here is my scenario
I have an https:// site running on an... (0 Replies)
Discussion started by: netxus
0 Replies
7. Web Development
I have interesting problem.
https:/host/some/x.cgi
- this script has run twice when I call this url
But
http:/host/some/x.cgi
work fine, only once.
Output is text/plain.
If I change output format to the Content-type text/html,
then both urls works fine - executed only once. (2 Replies)
Discussion started by: kshji
2 Replies
8. Web Development
Does anyone know where Apache's use of SSL_VERSION_LIBRARY is defined and pulled from, in regard to headers? So far, I've tracked it down to mod_ssl. Which is fine, however, when I recompile mod_ssl with a new version of OpenSSL, and install the module, the request headers still report the old... (0 Replies)
Discussion started by: sun2ecliptic
0 Replies
9. IP Networking
Hi, I need help to configure the apache to work with ssl.
I have managed to create self-signed certificate according to the instruction in the following link.
So I have the crt file and the key file.
however when I add:
<Virtualhost *:443>
SSLEngine on
... (1 Reply)
Discussion started by: programAngel
1 Replies
10. Linux
Issue observed: I have configured ng.my-site.com using widlcard ssl cert. When I hit https://www.my-site.com it loads ng.my-site.com website!
please advise if I missed any concept / configs... Thank you!
httpd.conf
<VirtualHost *:80>
ServerName www.my-site.com
ServerAdmin... (0 Replies)
Discussion started by: ashokvpp
0 Replies
LEARN ABOUT DEBIAN
apache::singleton
Apache::Singleton(3pm) User Contributed Perl Documentation Apache::Singleton(3pm)
NAME
Apache::Singleton - Singleton class for mod_perl
VERSION
version 0.15
SYNOPSIS
package Printer;
# default:
# Request for mod_perl env
# Process for non-mod_perl env
use base qw(Apache::Singleton);
package Printer::PerRequest;
use base qw(Apache::Singleton::Request);
package Printer::PerProcess;
use base qw(Apache::Singleton::Process);
DESCRIPTION
Apache::Singleton works the same as Class::Singleton, but with various object lifetime (scope). See Class::Singleton first.
OBJECT LIFETIME
By inheriting one of the following sublasses of Apache::Singleton, you can change the scope of your object.
Request
use base qw(Apache::Singleton::Request);
One instance for one request. Apache::Singleton will remove instance on each request. Implemented using mod_perl "pnotes" API. In
mod_perl environment (where $ENV{MOD_PERL} is defined), this is the default scope, so inheriting from Apache::Singleton would do the
same effect.
NOTE: You need "PerlOptions +GlobalRequest" in your apache configuration in order to use the Request lifetime method.
Process
use base qw(Apache::Singleton::Process);
One instance for one httpd process. Implemented using package global. In non-mod_perl environment, this is the default scope, and you
may notice this is the same beaviour with Class::Singleton ;)
So you can use this module safely under non-mod_perl environment.
CREDITS
Original idea by Matt Sergeant <matt@sergeant.org> and Perrin Harkins <perrin@elem.com>.
Initial implementation and versions 0.01 to 0.07 by Tatsuhiko Miyagawa <miyagawa@bulknews.net>.
SEE ALSO
Apache::Singleton::Request, Apache::Singleton::Process, Class::Singleton
SOURCE
The development version is on github at http://github.com/mschout/apache-singleton <http://github.com/mschout/apache-singleton> and may be
cloned from git://github.com/mschout/apache-singleton.git <git://github.com/mschout/apache-singleton.git>
BUGS
Please report any bugs or feature requests to bug-apache-singleton@rt.cpan.org or through the web interface at:
http://rt.cpan.org/Public/Dist/Display.html?Name=Apache-Singleton
AUTHOR
Michael Schout <mschout@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Michael Schout.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-04-02 Apache::Singleton(3pm)