Skip to content

Commit

Permalink
Add sample virtualhost .conf file for Apache2 on Fedora
Browse files Browse the repository at this point in the history
This needs to be used when hosting the project in production with
Apache, mod_ssl, and mod_wsgi (enabling SSL).

Self-certificate can be generated with openssl.

Related: freeipa#29
Signed-off-by: Francisco Trivino <ftrivino@redhat.com>
  • Loading branch information
f-trivino committed Jun 6, 2023
1 parent d2d0994 commit 46cf6dd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/conf/ipatuura.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<VirtualHost *:443>
LogLevel info
RewriteCond %{SERVER_PORT} !^443$$

<Directory /www/ipa-tuura/src/ipa-tuura/root/>
<Files wsgi.py>
Require all granted
</Files>
</Directory>

WSGIDaemonProcess ipa-tuura python-path=/www/ipa-tuura/src/ipa-tuura/root
WSGIProcessGroup ipa-tuura
WSGIScriptAlias / /www/ipa-tuura/src/ipa-tuura/root/wsgi.py

SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/apache-selfsigned.crt
SSLCertificateKeyFile /etc/pki/tls/private/apache-selfsigned.key

</VirtualHost>

0 comments on commit 46cf6dd

Please sign in to comment.