Media Wiki Installation Configure httpd VirtualHost: Difference between revisions
Jump to navigation
Jump to search
(→Mac) |
(→Mac) |
||
Line 25: | Line 25: | ||
Edit <code>/opt/brew/etc/httpd/httpd.conf</code> and add at the bottom: | Edit <code>/opt/brew/etc/httpd/httpd.conf</code> and add at the bottom: | ||
<syntaxhighlight lang='xml'> | |||
<VirtualHost 1.2.3.4:443> | |||
ServerName wiki.novaordis.com:443 | |||
DocumentRoot /var/www/wiki.novaordis.com | |||
<Directory "/var/www/wiki.novaordis.com"> | |||
DirectoryIndex index.html index.html.var index.php | |||
</Directory> | |||
# SSL configuration follows ... | |||
</VirtualHost> | |||
</syntaxhighlight> |
Revision as of 00:59, 30 December 2023
Internal
Linux
We assume httpd
is correctly installed and configured to support SSL.
We will serve Media Wiki as a secure virtual host and a redirecting non-secure host. Edit /etc/httpd/conf.d/ssl.conf
:
...
<VirtualHost 1.2.3.4:443>
ServerName wiki.novaordis.com:443
DocumentRoot /var/www/wiki.novaordis.com
<Directory "/var/www/wiki.novaordis.com">
DirectoryIndex index.html index.html.var index.php
</Directory>
# SSL configuration follows ...
</VirtualHost>
...
Understand why I needed to: "Require all granted" under <Directory "/var/www/wiki.novaordis.com"> .
Mac
Edit /opt/brew/etc/httpd/httpd.conf
and add at the bottom:
<VirtualHost 1.2.3.4:443>
ServerName wiki.novaordis.com:443
DocumentRoot /var/www/wiki.novaordis.com
<Directory "/var/www/wiki.novaordis.com">
DirectoryIndex index.html index.html.var index.php
</Directory>
# SSL configuration follows ...
</VirtualHost>