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

289
Views
Redirecting as proxy one subfolder of apache server to azure web app

I have a website on apache web server, and I would like one of subfolders to transparently redirect to azure web app.

  • mydomain.org -> regular apache page
  • mydomain.org/something -> regular apache page
  • mydomain.org/azure -> redirect to azure

However, I would need the url to stay on mydomain.org, so I would like - for example mydomain.com/azure/x/y to actually show result of azuredomain.org/x/y

I believe I can do it using .htaccess with rule: RewriteRule ^(.*)$ azuredomain.org/$1 [P]

However, this results in azure 404 error with suggestion that maybe "Custom domain has not been configured inside Azure", which is in fact correct.

Is it possible to configure 'mydomain.org ' as custom domain in azure, but only for one subfolder (mydomain.org /azure/) while allowing all other urls to map to apache server?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I managed to make it work:

  1. Create subdomain 'azure' pointing to folder 'azure'
  2. Add .htaccess to 'azure' folder with rule RewriteRule ^(.*)$ azuredomain.org/$1 [P]
  3. Add records to domain:
  • TXT / asuid.azure / [verificationID]
  • CNAME / azure / azuredomain.org
  1. In Web App settings add custom domain with subdomain: azure.mydomain.org
over 4 years ago · Santiago Trujillo Report
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!