-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
749 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<VirtualHost *:80> | ||
ServerAdmin webmaster@localhost | ||
|
||
WSGIDaemonProcess djangoP processes=10 threads=15 display-name=%{GROUP} python-path=/var/www/git-repo/azimut-gestion/ | ||
WSGIProcessGroup djangoP | ||
WSGIScriptAlias / /var/www/git-repo/azimut-gestion/app/wsgi.py | ||
WSGIApplicationGroup %{GLOBAL} | ||
WSGIPassAuthorization On | ||
|
||
DocumentRoot /var/www | ||
<Directory /> | ||
Options FollowSymLinks | ||
AllowOverride None | ||
</Directory> | ||
|
||
<Directory /var/www/git-repo/azimut-gestion/> | ||
Options -Indexes FollowSymLinks MultiViews | ||
AllowOverride None | ||
Order allow,deny | ||
Allow from all | ||
</Directory> | ||
|
||
ErrorLog ${APACHE_LOG_DIR}/error.log | ||
|
||
LogLevel warn | ||
|
||
CustomLog ${APACHE_LOG_DIR}/access.log combined | ||
|
||
Alias /media/ /var/www/git-repo/azimut-gestion/media/ | ||
|
||
<Directory /var/www/git-repo/azimut-gestion/media/> | ||
Order Allow,Deny | ||
Allow from All | ||
</Directory> | ||
|
||
Alias /static/ /var/www/git-repo/azimut-gestion/static/ | ||
|
||
<Directory /var/www/git-repo/azimut-gestion/static/> | ||
Order Allow,Deny | ||
Allow from All | ||
</Directory> | ||
|
||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Host * | ||
StrictHostKeyChecking no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
case "$1" in | ||
start) echo "Starting iptables NAT for openvz" | ||
/sbin/iptables -t nat -D POSTROUTING -s 10.7.0.0/24 -o %(interface)s -j SNAT --to %(server_ip)s | ||
/sbin/iptables -t nat -A POSTROUTING -s 10.7.0.0/24 -o %(interface)s -j SNAT --to %(server_ip)s | ||
/sbin/iptables -t nat -A PREROUTING -i %(interface)s -p tcp --dport 10122 -j DNAT --to 10.7.0.1:22 | ||
/sbin/iptables -t nat -A PREROUTING -i %(interface)s -p tcp --dport 10222 -j DNAT --to 10.7.0.2:22 | ||
/sbin/iptables -t nat -A PREROUTING -i %(interface)s -p tcp --dport 80 -j DNAT --to 10.7.0.1:80 | ||
|
||
;; | ||
stop) echo "Stopping iptables NAT for openvz" | ||
/sbin/iptables -t nat -D POSTROUTING -s 10.7.0.0/24 -o %(interface)s -j SNAT --to %(server_ip)s | ||
/sbin/iptables -t nat --flush PREROUTING | ||
|
||
;; | ||
flush) echo "Flusing iptables NAT for openvz" | ||
/sbin/iptables -t nat --flush PREROUTING | ||
|
||
;; | ||
*) echo "Usage: /etc/init.d/nat-vz {start|stop|flush}" | ||
exit 2 | ||
;; | ||
esac | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
server { | ||
listen 80; | ||
server_name %(gestion_hostname)s; | ||
|
||
location / { | ||
proxy_pass http://10.7.0.2/; | ||
access_log off; | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.