Routing to different services

Eric Buist 1 Reputation point
2022-07-31T20:19:26.127+00:00

Hi, I am trying to migrate my existing website from Hostpapa to Azure and getting trouble keeping the same structure. My website has three parts: static (X)HTML contents, a French Wordpress blog and an English Wordpress blog. I create an Azure Static App Service for the static contents, and two Azure App Service for the blogs. Now I want to tie this to my existing domain and cannot figure out how.

If I cannot preserve these links, my two blogs are completely broken because of images. It was a major mistake to use Wordpress, I know now, because Wordpress wrongly links all images using absolute URLs hard-coding the full paths including domain name.

If Azure Static Webapp cannot handle that, is there an Azure service I could use to act as a kind of frontend that would route to the three internal services?

I am looking for a better way than creating an Azure Virtual Machine, install NGINX on it and map ericbuist.com to that, because configuration of NGINX is too complex and colleagues that attempted it got issues after issues.

Note that I needed to put totally random non-sense tags, which is yet another bummer for me. Yes, this a a detail, but this is really annoying to be stuck doing non-sense again, again, again, again, again. Why isn't there a way to add a "routing" or a "domain" tag?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,963 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2022-08-03T13:17:03.87+00:00

    EricBuist-9623, Apologies for the delayed response.

    Just to clarify, have provisioned Azure Static WebApp and App Service WebApp already?
    Kindly let me know, how the following steps works, I'll follow-up with you. You may just migrate your site content to Azure App Service.
    Broadley, you will have to go over these 3 steps:

    1.Deploy WordPress (built in image) or a custom container
    2.Migrate/copy the site contents over to App Service
    3. Set/configure custom domain

    Deploy:

    You may create a WordPress site using the built-in image, as mentioned in this document
    https://learn.microsoft.com/azure/app-service/quickstart-wordpress

    Or

    Deploy a customer container, as outlined in this doc Run a custom container in Azure

    Migrate:

    Once the App Service WebApp is provisioned.

    You may copy the files to /home/site/wwwroot for Linux.

    Checkout the steps to deploy files to App Service

    Alternatively

    If you had taken backups of your WordPress site, you could use your latest backup for the migration.
    https://azureossd.github.io/2020/08/07/wordpress-migration-plan-to-azure/

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.