Project

General

Profile

https doesn't work

Added by Chang-Uk Shin over 9 years ago

I want to connect with https(443)

it's good over http.

but over https, it shows

"
Page not found

The page you were trying to access doesn't exist or has been removed.
"

i've attached my conf/error log below

please help.

thnx.

//////////////////////////////////////////

httpd.conf about 80

#NameVirtualHost :80
<VirtualHost *:80>
ServerName tyr.nlp.wo.tc
DocumentRoot /home/redmine/public
<Directory /home/redmine/public>
Options FollowSymLinks
AllowOverride All
</Directory>
<Proxy balancer://redmine_cluster>
Order allow,deny
Allow from all
BalancerMember http://127.0.0.1:4000
BalancerMember http://127.0.0.1:4001
BalancerMember http://127.0.0.1:4002
BalancerMember http://127.0.0.1:4003
ProxySet lbmethod=byrequests
</Proxy>
RewriteEngine On
RewriteCond /{REQUEST_FILENAME} !-f
RewriteRule ^/(.
)$ balancer://redmine_cluster%{REQUEST_URI} [P,QSA,L]
</VirtualHost>

httpd.conf about 443

#redmine Server and Repository
NameVirtualHost :443
<VirtualHost *:443>
ServerName tyr.nlp.wo.tc
DocumentRoot /home/redmine/public
<Directory "/home/redmine/public">
Options FollowSymLinks
AllowOverride All
#Order allow,deny
#Allow from all
#RailsBaseURI /
#PassengerResolveSymlinksInDocumentRoot on
</Directory>
SSLEngine On
#SSLProxyEngine On
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "/etc/httpd/conf/server.crt"
SSLCertificateKeyFile "/etc/httpd/conf/server.key"
RequestHeader set X_FORWARDED_PROTO 'https'
ProxyPass / balancer://redmine_cluster/
ProxyPassReverse / balancer://redmine_cluster/
<Proxy balancer://redmine_cluster>
Order allow,deny
Allow from all
BalancerMember https://127.0.0.1:4000
BalancerMember https://127.0.0.1:4001
BalancerMember https://127.0.0.1:4002
BalancerMember https://127.0.0.1:4003
</Proxy>
RewriteEngine On
#RewriteCond /{REQUEST_FILENAME} !-f
RewriteRule ^/(.
)$ balancer://redmine_cluster%{REQUEST_URI} [P,QSA,L]
#RailsEnv production
#RailsBaseURI /
#PassengerResolveSymlinksInDocumentRoot on
#PassengerAppRoot /home/redmine/public/
</VirtualHost>

redmine/log/production.log

ActionController::RoutingError (No route matches [GET] "/index.html"):
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
railties (3.2.13) lib/rails/engine.rb:479:in `call'
railties (3.2.13) lib/rails/application.rb:223:in `call'
railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
passenger (4.0.53) lib/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
passenger (4.0.53) lib/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
passenger (4.0.53) lib/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
passenger (4.0.53) lib/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'

redmine/config/environment.rb

#Load the rails application
ENV['RAILS_ENV'] ||= 'production'
require File.expand_path('../application', FILE)
#Make sure there's no plugin in vendor/plugin before starting
vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
$stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " +
"Please, put your Redmine plugins in the `plugins` directory at the root of your " +
"Redmine directory (#{File.join(Rails.root, "plugins")})"
exit 1
end
#Initialize the rails application
RedmineApp::Application.initialize !