Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add updated HEADER, and missing stagingyum entries #1869

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Aug 27, 2023

Is this enough to get a DNS entry for stagingyum.theforeman.org or do I need @ekohl / @evgeni to add one?

@ehelms
Copy link
Member Author

ehelms commented Aug 27, 2023

Is it expected that http://web01.osuosl.theforeman.org/ serves the same page as deb.theforeman.org ?

@ekohl
Copy link
Member

ekohl commented Aug 28, 2023

Is this enough to get a DNS entry for stagingyum.theforeman.org or do I need @ekohl / @evgeni to add one?

We host DNS at Gandi. I think @evgeni and I are the only ones with an account there now.

I've now created a CNAME record.

Is it expected that http://web01.osuosl.theforeman.org/ serves the same page as deb.theforeman.org ?

Apache has virtual hosts and I think the best way to describe that is the (relevant) output from httpd -S:

# httpd -S
VirtualHost configuration:
*:443                  is a NameVirtualHost
         default server archivedeb.theforeman.org (/etc/httpd/conf.d/25-archivedeb-https.conf:6)
         port 443 namevhost archivedeb.theforeman.org (/etc/httpd/conf.d/25-archivedeb-https.conf:6)
         port 443 namevhost deb.theforeman.org (/etc/httpd/conf.d/25-deb-https.conf:6)
         port 443 namevhost debugs.theforeman.org (/etc/httpd/conf.d/25-debugs-https.conf:6)
         port 443 namevhost downloads.theforeman.org (/etc/httpd/conf.d/25-downloads-https.conf:6)
         port 443 namevhost stagingdeb.theforeman.org (/etc/httpd/conf.d/25-stagingdeb-https.conf:6)
         port 443 namevhost stagingyum.theforeman.org (/etc/httpd/conf.d/25-stagingyum-https.conf:6)
         port 443 namevhost theforeman.org (/etc/httpd/conf.d/25-web-https.conf:6)
                 alias www.theforeman.org
         port 443 namevhost yum.theforeman.org (/etc/httpd/conf.d/25-yum-https.conf:6)
*:80                   is a NameVirtualHost
         default server archivedeb.theforeman.org (/etc/httpd/conf.d/25-archivedeb.conf:6)
         port 80 namevhost archivedeb.theforeman.org (/etc/httpd/conf.d/25-archivedeb.conf:6)
         port 80 namevhost deb.theforeman.org (/etc/httpd/conf.d/25-deb.conf:6)
         port 80 namevhost debugs.theforeman.org (/etc/httpd/conf.d/25-debugs.conf:6)
         port 80 namevhost downloads.theforeman.org (/etc/httpd/conf.d/25-downloads.conf:6)
         port 80 namevhost stagingdeb.theforeman.org (/etc/httpd/conf.d/25-stagingdeb.conf:6)
         port 80 namevhost stagingyum.theforeman.org (/etc/httpd/conf.d/25-stagingyum.conf:6)
         port 80 namevhost theforeman.org (/etc/httpd/conf.d/25-web.conf:6)
                 alias www.theforeman.org
         port 80 namevhost yum.theforeman.org (/etc/httpd/conf.d/25-yum.conf:6)
ServerRoot: "/etc/httpd"
Main DocumentRoot: "/etc/httpd/htdocs"
Main ErrorLog: "/var/log/httpd/error_log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/run/httpd/" mechanism=default 
Mutex mpm-accept: using_defaults
Mutex authdigest-opaque: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
PidFile: "/etc/httpd/run/httpd.pid"
Define: _RH_HAS_HTTPPROTOCOLOPTIONS
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="apache" id=48
Group: name="apache" id=48

You can see that web01.osuosl.theforeman.org isn't explicitly mentioned so it falls back to the default, which is archivedeb, not deb

@ekohl ekohl merged commit d3863fb into theforeman:master Aug 28, 2023
2 checks passed
@ehelms
Copy link
Member Author

ehelms commented Aug 28, 2023

@evgeni - is there some configuration needed?

Fastly error: unknown domain: stagingyum.theforeman.org. Please check that this domain has been added to a service.

Details: cache-pdk17874-PDK

@ekohl
Copy link
Member

ekohl commented Aug 28, 2023

Where do you get that error? Let's Encrypt? We do have a bit of a bootstrap problem with it: IIRC you first need the HTTP vhost to exist before you can request the HTTPS certificate. Perhaps that's the problem here?

@ehelms
Copy link
Member Author

ehelms commented Aug 28, 2023 via email

@ekohl
Copy link
Member

ekohl commented Aug 28, 2023

Ah, we need to set up the CDN as well. Previously @evgeni has used

with_items:
- archivedeb
- deb
- downloads
- stagingdeb
- yum
to set that part up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants