i am trying to deploy my cakephp 3.0 application in microsoft azure. But it shows server error 500. I have tried every method include htaccess mod rewrite but not able to solve this error. Please Help
Thank you
Azure Web App doesn't support the use of htaccess, if you use a tool such as http://htaccesstowebconfig.com to paste in your htaccess file and it will provide you with the web.config file that is required for IIS.
If you would like to vote on Web App providing support for .htaccess you can add your feedback on uservoice
Related
I was trying to deploy my web app without using HTTPs using a custom domain:
But all the settings I made did not work, when I enter the url I still get the https version.
Reference: How to Disable SSL on ASP.NET Core API 3.1 Project in Visual Studio 2019 16.8.3 Build?
entering the URL will still forward to the https version
You can't disable the HTTPS scheme on an Azure website, that's one thing configured centrally and not something you have the ability to turn on or off.
You can simply load a free SSL certificate onto the site that's valid for your own domain .
Please refer How to load a free SSL certificate into an Azure website.
NOTE:-
you can only load your own certificate on Basic and Standard Azure
websites, you won't be able to do this if you're on Free or Shared.
For more information please refer the below link :-
. MAP custom domain| MS DOC .
. Similar SO thread. .
I am trying to find a way to test something specific. I am having an issue with a web application to where it redirects to the website and not the web application after being published and deployed to IIS. So to debug the issue i need to set up Visual Studio to have the same structure as IIS. I am integrating with AzureAD and after the login to Azure redirects to the web app, the web app then redirects again. So after AzureAD login, i am at the right URL, but then for some reason get redirected again. So i need to debug.
Example of the issue:
Go to website: https://myurl.com/webApp1/
push button to log in to AzureAD.
redirects to MS Azure login screen.
after successful login to Azure, redirects back to site: https://myurl.com/webApp1/
web app then redirects to website with no app name: https://myurl.com/
Running the site through VS 2019, it is always: https://localhost/
so the issue doesn't happen because it is ok if the site redirects to https://localhost/ at any point.
My question is if there is a way to set up VS to match the structure of IIS? Thank you for any help.
You can debug a Visual Studio application that has been deployed on a different computer(App Service, VM, etc.) using Visual Studio remote debugger.
There are various methods with which you can do that, and it depends on the Tech stack you are using. Pls visit the link above and follow tutorial as appropriate.
Place your breakpoints in the Login flow, and you will be able to debug deployed code and find out the issue.
I have a application which is hosted in IIS on window server and application URL is "www.hire.com/jobborad". Now i am going to add new feature(sub application) for example "Candidate Hub" so
I am planning to created separate code-base and host that application in Azure as Web App but i want to use the same parent domain of my original application. my sub application's URL will be a "www.hire.com/CandidateHub".
Is there any way that even if my application hosted in differently environment, I will be able to use same domain?If yes then could you please recommend me any tutorial, blog or any thing which help me to resolve my problem.
I search a lot on google but nothing find useful.
Thanks in-advance for help.
Note : Mentioned URLs are just for example. Those are not exist.
this is usually done with the URL Rewrite Module in IIS.
Don't be surprised that the docs are quite old. They are still valid for latest Win Server and IIS.
for external routing you also may need the ARR feature which should be downloaded via the Web Platform Installer.
Hope I explain this clearly enough. I am migrating a web application to azure. I have it setup so far as an aspx web application and a sql server database. The site is hosted (don't know if that's the correct term) in a cloud service (which I deployed using Visual Studio). Everything works great so far. What I want to do now is add a WP blog. I have created on as a test and it's really easy as an azure website.
What I want to do is this: If my custom domain is www.site.com and that points to the cloud service web role, can I create a WP blog as a separate azure website at myblog.azurewebsites.net and somehow point a virtual at that so that www.site.com/blog will point to the blog website? I know how to add a domain to the website, just not sure how to do the virtual part...
Thanks for any suggestions!
-Jeff
As far as I know, NO, unless you can modify the BLOG's code to keep rewriting URL's to make it look like www.site.com/blog
Simpler alternative: implement a blog.site.com instead of www.site.com/blog and map it to your blog on Azure sites. You can also setup a redirect to work from www.site/com/blog to go to blog.site.com
I am trying to upload a file to blob in asp.net azure. I am getting success if the page is without ssl. but if i upload with https page then i am getting connection was reset error.
And also I mentioned the maxrequestlength in web.config.
This is not Azure specific error instead it is an ASP.NET specific problem. I did some test if I could hit the problem but no luck..
I am getting sure that the problem is introduced by adding maxrequestlength and potentially having request filtering. You must setup the timeout setting with length and support script runtime in webserver specific settings.
You also have one option to RDP to your instance and enable IIS debugging to understand what could be the problem:
http://www.microsoft.com/en-us/download/details.aspx?id=26798
After running Debug Diagnostic Tool v1.2, please share your log, and i will look for root cause.
To RDP Access to Windows Azure Application, visit my blog here