system info:
Code:
$ uname -a
Linux larrycotton-Latitude-E7440 5.15.0-58-generic #64~20.04.1-Ubuntu SMP Fri Jan 6 16:42:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
$ apache2 -v
Server version: Apache/2.4.41 (Ubuntu)
Server built: 2023-01-23T18:36:09
Hi
I have an apache server configuration which I have used on centos httpd - some of which I would like to transfer accross to Ubuntu apache2. I have installed and run up a vanilla apache2 and that seems to be running fine, but I noticed the configuration structure seems to be a little different and was wondering if someone could answer some questions regarding how I can configure it (specifically to use ssl and wsgi).
1) It looks like to install the wsgi module I do:
Code:
$ apt-get install libapache2-mod-wsgi
When I do this I notice it installs libpython2.7 even though the default system python is 3.8. Is that because mod_wsgi is built with python 2.7 and I have to use python 2 with it ?
If so is it possible to get a version of mod_wsgi that is built against python 3.8 ? Or would I have to build that myself ?
2) It looks like in order to load a module you need to put the load statement in a file called <modname>.load in the mods-available directory. Is that correct ?
3) In my httpd config I configure my https parameters, both global and for VirtualHosts in conf.d/ssl.conf. Does anyone know what the equivalent file is for apache2 on Ubuntu ? I see there is an ssl.conf in mods-available and mods-enabled. It looks like apache2.conf includes mods-enabled and mods-enabled simply contains links to mods-available, so can I simply transfer across my httpd ssl.conf to mods-available/ssl.conf (except see Q4 below), or is different syntax required?
4) In my ssl.conf I breate a VirtualHost something like:
Listen 8443
<VirtualHost *:8443>
I notice that on Ubuntu apacher2 there is a file called ports.conf that contains Listen ports for modules. Do I need to put Listen statements for VirtualHost ports in that file ?