Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

Prevent Mongrel http port 3001 remote access when running https on port 2443

$
0
0

I finally have Redmine running https on a Windows 7 computer on which I installed a Rubystack Stack-2.3.14-0, a Postgresql-5.3.9-0 module and a Redmine-1.3.0-1 module. How do I prevent users from entering http://myserver.mydomain.com:3001 when the Redmine site is set up for access using https://myserver.mydomain.com:2443? However I really would rather not have to use the port numbers in the URL if it could be avoided.

<VirtualHost mySupportSite.myDomain.net:2443>
  ServerAdmin mySupportSite@myDomain.net
  ServerName mySupportSite.myDomain.net
  ErrorLog "logs/error.log" 
  CustomLog "logs/access.log" combined
...
  RewriteEngine On  
  # Redirect non-static requests to cluster                                     
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]

  ProxyPass / balancer://redminecluster
  ProxyPassReverse / balancer://redminecluster

  <Proxy balancer://redminecluster>
    RequestHeader set X_FORWARDED_PROTO 'https'
    BalancerMember http://127.0.0.1:3001
  </Proxy>

</VirtualHost>

A portion of the httpd.conf is shown. The redmine.conf file is commented out. Thank you in advance for your response.


Viewing all articles
Browse latest Browse all 2052

Trending Articles