Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
youtrack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
youtrack
Commits
785a7a32
Commit
785a7a32
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Apache config for Jetty/YouTrack
parent
84743ed4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/apache_default
+23
-0
23 additions, 0 deletions
templates/apache_default
templates/apache_default_ssl
+42
-0
42 additions, 0 deletions
templates/apache_default_ssl
with
65 additions
and
0 deletions
templates/apache_default
0 → 100644
+
23
−
0
View file @
785a7a32
# Use this one if you want to force SSL
<VirtualHost *:80>
ServerName youtrack.paragon-es.de
ServerSignature Off
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
</VirtualHost>
# Without SSL, use this one
<VirtualHost *:80>
ServerName youtrack.paragon-es.de
ServerSignature Off
ProxyRequests Off
<Proxy *:80>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://127.0.0.1:8085/
ProxyPassReverse / http://127.0.0.1:8085/
</VirtualHost>
This diff is collapsed.
Click to expand it.
templates/apache_default_ssl
0 → 100644
+
42
−
0
View file @
785a7a32
<VirtualHost _default_:443>
ServerName youtrack.paragon-es.de
ServerAdmin admin@paragon-es.de
ServerSignature Off
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
RequestHeader set X_FORWARDED_PROTO 'https'
ProxyRequests Off
<Proxy *:80>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /~socket.io/1/websocket ws://127.0.0.1:8085/~socket.io/1/websocket
ProxyPass / http://127.0.0.1:8085/
ProxyPassReverse / http://127.0.0.1:8085/
ErrorLog ${APACHE_LOG_DIR}/youtrack-error.log
LogLevel warn
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
CustomLog ${APACHE_LOG_DIR}/youtrack_ssl_access.log combined env=!forwarded
CustomLog ${APACHE_LOG_DIR}/youtrack_ssl_access.log proxy env=forwarded
SSLEngine on
SSLCertificateChainFile /etc/ssl/private/Intermediate_CA_Bundle.crt
SSLCertificateFile /etc/ssl/private/paragon-es.de.crt
SSLCertificateKeyFile /etc/ssl/private/paragon-es.de.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment