Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
okeanos-LoD
Commits
aa23dfc2
Unverified
Commit
aa23dfc2
authored
Nov 05, 2015
by
Avraam Tsantekidis
Browse files
common ports for apache
parent
5ba37e2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
webapp/ansible/roles/service-vm/templates/lambda-service-backend.conf.j2
View file @
aa23dfc2
<
VirtualHost
*:80
>
RewriteEngine
On
RewriteCond
%{HTTPS} !=on
RewriteRule
^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteEngine
On
RewriteCond
%{HTTPS} !=on
RewriteRule
^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</
VirtualHost
>
<
VirtualHost
*:443
>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerName
{{ ansible_hostname }}.vm.okeanos.grnet.gr
#ServerAdmin webmaster@localhost
DocumentRoot
{{ repository_download_path }}/okeanos-LoD/webapp/
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#
ServerName www.example.com
ServerName
{{ ansible_hostname }}.vm.okeanos.grnet.gr
#
ServerAdmin webmaster@localhost
DocumentRoot
{{ repository_download_path }}/okeanos-LoD/webapp/
Alias
/static/ {{ repository_download_path }}/okeanos-LoD/webapp/static/
Alias
/docs {{ repository_download_path }}/okeanos-LoD/webapp/api-doc/site
<
Directory
{{ repository_download_path }}/okeanos-LoD/webapp/static
>
Require
all
granted
Require
all
granted
</
Directory
>
WSGIScriptAlias / {{ repository_download_path }}/okeanos-LoD/webapp/webapp/wsgi.py
Alias
/api {{ repository_download_path }}/okeanos-LoD/webapp/webapp/django.wsgi/api
WSGIScriptAlias /api {{ repository_download_path }}/okeanos-LoD/webapp/webapp/django.wsgi/api
WSGIPassAuthorization
On
Header
always
set
Access-Control-Allow-Origin: "https://{{ ansible_hostname }}.vm.okeanos.grnet.gr:4201"
Header
always
set
Access-Control-Allow-Credentials: true
Header
always
set
Access-Control-Allow-Methods: "GET, POST, DELETE, OPTIONS"
Header
always
set
Access-Control-Allow-Headers "Authorization"
Header
always
add
Access-Control-Allow-Headers "Content-Type"
RewriteEngine
On
RewriteCond
%{REQUEST_METHOD}
OPTIONS
RewriteRule
^(.*)$ $1 [R=200,L]
SSLEngine
ON
SSLCertificateFile
/etc/apache2/ssl/server.crt
SSLCertificateKeyFile
/etc/apache2/ssl/server.key
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog
${APACHE_LOG_DIR}/error.log
CustomLog
${APACHE_LOG_DIR}/access.log combined
#limit request body size to 500MB
LimitRequestBody
524288000
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
<
Directory
{{ repository_download_path }}/okeanos-LoD/webapp/webapp
>
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization
On
AddHandler
wsgi-script .wsgi
Options
ExecCGI
Order
allow,deny
Allow
from
all
</
Directory
>
Alias
/ {{ repository_download_path }}/okeanos-LoD/webapp/frontend/dist/
<
Directory
{{ repository_download_path }}/okeanos-LoD/webapp
>
Order
deny,allow
Allow
from
all
</
Directory
>
Header
always
set
Access-Control-Allow-Origin: "https://{{ ansible_hostname }}.vm.okeanos.grnet.gr:4201"
Header
always
set
Access-Control-Allow-Credentials: true
Header
always
set
Access-Control-Allow-Methods: "GET, POST, DELETE, OPTIONS"
Header
always
set
Access-Control-Allow-Headers "Authorization"
Header
always
add
Access-Control-Allow-Headers "Content-Type"
RewriteEngine
On
RewriteCond
%{REQUEST_METHOD}
OPTIONS
RewriteRule
^(.*)$ $1 [R=200,L]
SSLEngine
ON
SSLCertificateFile
/etc/apache2/ssl/server.crt
SSLCertificateKeyFile
/etc/apache2/ssl/server.key
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog
${APACHE_LOG_DIR}/error.log
CustomLog
${APACHE_LOG_DIR}/access.log combined
# limit request body size to 500MB
LimitRequestBody
524288000
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
# Include conf-available/serve-cgi-bin.conf
</
VirtualHost
>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
webapp/webapp/wsgi
.py
→
webapp/webapp/
django.
wsgi
View file @
aa23dfc2
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment