Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

122
Views
Apache multiple subdomains pointing to one ip but to different ports

I searched a lot on how to create multiple subdomains pointing to the same IP address but to different sites and I found that with apache you can do it using the HTTP Host header and it works, but when I switch to HTTPS it doesn't work anymore because I saw that in the HTTPS protocol the Host header doesn't exist. How can I do that with HTTPS?

This is my current apache HTTP config file

000-domain.com.conf

<VirtualHost *:80>
    ServerName sub1.domain.com
    ServerAlias sub1.domain.com
    ServerAlias *.sub1.domain.com
    DocumentRoot "/var/www/sub1"
</VirtualHost>


<VirtualHost *:80>
    ServerName sub2.domain.com
    ServerAlias sub2.domain.com
    ServerAlias *.sub2.domain.com
    DocumentRoot /var/www/sub2
</VirtualHost>
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!