Sponsored Content
Top Forums Web Development Httpd proxy with mod_jk,ssl only on login page using .htacess Post 302884594 by new2ss on Tuesday 21st of January 2014 02:16:41 AM
Old 01-21-2014
Httpd proxy with mod_jk,ssl only on login page using .htacess

Hi all, I have a web app with the following pages, browse.jsp and shopping.jsp. I want to protect shopping.jsp with https. (https is only between browser and apache httpd server.)The https for the shopping.jsp page will terminate at the web server.

From web server to tomcat application server will be http connection, for both shopping.jsp and browse.jsp. I do not require mod_jk to pass on the https for the shopping.jsp page tomcat.

shopping.jsp will be accessed via https://myapp1.com/shoppingcart/shopping.jsp. Upon login, it will go to http://myapp1.com/shoppingcart/browse.jsp.

myapp1.com will be created in the dns to point to my webserver. Backend is apache tomcat.

My webserver and tomcat are on the same server.

This is what i have done.

1.In my httpd.conf
Code:
Listen 80

Listen 443
SSL Engine on
SSLCertificateFile C:..
SSLCertificateKeyFile C:..

2. in my mod_jk.conf
Code:
LoadModule jk_module modules/mod_jk.so
jkMount /* loadbalancer
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule ^/?(shopping.jsp$ https://localhost/shoppingcart/$1) [R,L,PT]
</IfModule>
JkMount /status/* status

With the above, i can access https://myapp1.com/shoppingcart/browse.jsp and https://myapp1.com/shoppingcart/shopping.jsp

When I change to http://myapp1.com/shoppingcart/browse.jsp or shopping.jsp l get HTTP 400 bad request.

Last edited by new2ss; 01-23-2014 at 09:51 PM.. Reason: added more code
 

7 More Discussions You Might Find Interesting

1. Web Development

APACHE: Tie in Web Page login with server login

Hello, I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification. I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server. i.e. the same login info. is used for both,... (2 Replies)
Discussion started by: WhotheWhat
2 Replies

2. Cybersecurity

APACHE: Tie in Web Page login with server login

Hello, I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification. I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server. i.e. the same login info. is used for both, when... (1 Reply)
Discussion started by: WhotheWhat
1 Replies

3. Web Development

Apache proxy for web app with ssl

I have a ubuntu server running subsonic as a web app. Currently the web interface is available from port 4040 for https connections and 4141 for https connections with the context /subsonic as follows: http://mydomain:4040/subsonic https://mydomain:4141/subsonic I would like to loose the port... (0 Replies)
Discussion started by: barrydocks
0 Replies

4. Web Development

CGI not working with httpd server on busybox 1.15.0 on ltib Linux 2.6.34 (404 page not found)

I have some industrial ARM linux board with 2.6.34 Linux on it with Busybox v1.15.0. The https.conf is located in /etc/ and contains: H:/root/web In the www directory I also have 'cgi-bin' folder with chmod 777 and in that folder a file called 'testcgi'. Now I start the server with... (1 Reply)
Discussion started by: Roboserg
1 Replies

5. Red Hat

Proxy tunneling failed: ForbiddenUnable to establish SSL connection.

Tryied both ways curl and wget wget --no-check-certificate https://mysitet.it:61617 --2017-05-05 17:29:02-- https://mysitet.it:61617/ Connecting to myproxy:8080... connected. Proxy tunneling failed: ForbiddenUnable to establish SSL connection. curl https://mysite.it:61617 curl: (56)... (3 Replies)
Discussion started by: charli1
3 Replies

6. Linux

Apache wildcard ssl on subdomain serves same page for non ssl virtualhosts

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

7. Proxy Server

Httpd proxy on AIX: failed to connect SSL

Hi, I am trying to migrate a quite old proxy server with Apache httpd, running on AIX The scenario is that my server accepts connections on http and proxies them to an SSL backend. This is done in a ProxyPass statement, as follows: ProxyPass /myservice/my-ws... (1 Reply)
Discussion started by: trifo75
1 Replies
genhash(1)						      General Commands Manual							genhash(1)

NAME
genhash - md5 hash generation tool for remote web pages SYNOPSIS
genhash [options] [-s server-address] [-p port] [-u url] DESCRIPTION
genhash is a tool used for generating md5sum hashes of remote web pages. genhash can use HTTP or HTTPS to connect to the web page. The output by this utility includes the HTTP header, page data, and the md5sum of the data. This md5sum can then be used within the keepalived(8) program, for monitoring HTTP and HTTPS services. OPTIONS
--use-ssl, -S Use SSL to connect to the server. --server <host>, -s Specify the ip address to connect to. --port <port>, -p Specify the port to connect to. --url <url>, -u Specify the path to the file you want to generate the hash of. --use-virtualhost <host>, -u Specify the virtual host to send along with the HTTP headers. --verbose, -v Be verbose with the output. --help, -h Display the program help screen and exit. --release, -r Display the release number (version) and exit. SEE ALSO
keepalived(8), keepalived.conf(5) AUTHOR
genhash was written by Alexandre Cassen <acassen@linux-vs.org>. This man page was contributed by Andres Salomon <dilinger@voxel.net> for the Debian GNU/Linux system (but may be used by others). Feb 2004 genhash(1)
All times are GMT -4. The time now is 12:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy