Forum Moderators: phranque

Message Too Old, No Replies

Struggling with Configuration for Subdomain

         

ServerManDude

5:05 am on Jul 22, 2022 (gmt 0)



Hi everyone, I'm mostly new to Apache2 and the configuration files have always been mystifying to me. I've got an installation of GNU Mailman3 and its default apache config has everything go under example.com/mailman3 . What I want to do is have it all go under lists.exanoke.com . This is the current configuration file, how do I rewrite it so that it goes under lists.example.com? I already have the A records pointing to the server.

Alias /mailman3/favicon.ico /var/lib/mailman3/web/static/postorius/img/favicon.ico
Alias /mailman3/static /var/lib/mailman3/web/static

<Directory "/var/lib/mailman3/web/static">
Require all granted
</Directory>

<IfModule mod_proxy_uwsgi.c>
ProxyPass /mailman3/favicon.ico !
ProxyPass /mailman3/static !
ProxyPass /mailman3 unix:/run/mailman3-web/uwsgi.sock|uwsgi://localhost
</IfModule>

phranque

7:37 am on Jul 22, 2022 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], ServerManDude!

it might be helpful to see your current virtual host configuration directives.

ServerManDude

7:57 pm on Jul 22, 2022 (gmt 0)



Hi, where would I do that? I am really not good at Apache. I can share what one of my other subdomains looks like that I know how to configure (barely):


<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName inperson.example.com
ServerAlias www.inperson.example.com
DocumentRoot /var/www/inperson/

<Directory /var/www/inperson>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
</IfModule>
RewriteEngine on
RewriteCond %{SERVER_NAME} =inperson.example.com [OR]
RewriteCond %{SERVER_NAME} =www.inperson.example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>