How to put api in the folder of main site - flutter

I have Flutter Website in IIS 10 and I want to put my API to the same domain in the "API" folder
how do I do it?

First, right click your website - Add web application
Second, name the alias as "API" ,choose the path as your api application folder.
Then, visit "domain/API" will be your API content. Such as there is a "weatherforecast" route in my testAPI.

Related

Bindings already exsist for a different website

In details on IIS in windows server.
IIS tree structure:
Default Web Site * Parent Root folder C:\inetpub\wwwroot\Applications\Default Web Site
Employee * Sub App Root Folder C:\inetpub\ExternalEmployee
Sample * Sub App Root Fodler C:\inetpub\TEST_Project
Goal:
I want to deploy my application in sub application folder "C:\inetpub\ExternalEmployee" but not in parent root folder. So when I browse www.contoso.com/sample I can see img2.png
my default site looks like.
Current Issues:
Bindings already exsist for a different website.
Config type: IIS website
IIS web App MAnage:
Web site named: Default web site
Physical path: %SystemDrive%\inetpub\Test_Project
Hope this helps in solving my issue.
Thanks.
If you were deploying your app to a deployment group in azure devops release pipeline. You can add IIS web app manage task to manage your web's Physical path and bindings before IIS web app deploy task.
Please check below example, if you want to deploy the application in sub application folder C:\inetpub\ExternalEmployee. You can set Physical path to C:\inetpub\ExternalEmployee.
And you can click the 3dots of the Add binding fields to set the binding.
Bindings already exsist for a different website.
To fix this error you can either set a new binding for your web app, or you can try to find out which website has taken the binding on the windows server and remove the binding using below script.
Get-WebBinding -Port 80 -Name "website name" | Remove-WebBinding
Hope above helps!

How to open page directly in Ionic 4 from url

I have a project in Ionic 4, when I do ionic serve it runs at localhost:8100/
Now when it loads home page, the URL is localhost:8100/home, if I open contact page the URL becomes localhost:8100/contact.
When I try to copy the above URL and hit, then it says -
Sorry, this page doesn't exist. Please check the URL or go back a page.
What do I need to do to get this working?
Based on your comments this is happening because your server does not support fallback. So when you enter a url manually, the server is trying to find that page, but you only have index.html in your app because of Client side routing.
If the app uses the Angular router, you must configure the server to
return the application's host page (index.html) when asked for a file
that it does not have.
The configuration is specific to your server or cloud platform. You can check Angular deployment for more info.
This regularly should not happen and you can't do anything for this. Try to upgrade your ionic to the latest with nodejs since the error my be from currupted project creation. Then after update create a new project and it should go good.

Web link to local dropbox file

Is there a way to create a link (i.e that dropbox will redirect to a local file on my computer if the file is synced?
I run my own web server and each web page maps to a folder. i'd like to be able to create a link on that page that opens up that folder in explorer or finder?
thanks

Running service application response HTTP Status 404

I deploy https://blogs.sap.com/2017/09/15/library-manager-for-sap-web-ide/ on the sap hana cloud platform and I can see, that the application is running:
When I click on the application URL it says HTTP Status 404.
What am I doing wrong?
I found the answer in an SAP UI5 course page and verified it with my application. It mentions that the application URL shown in the cockpit is only the root URL. You need to append an relative path to it. To see your relative path, you can run the application from Web IDE, and then copy the path from the slash after the host name. For example, if the Web IDE test URL is https://webidetesting-trial.dispatcher.hanatrial.ondemand.com/webapp/test/flpSandbox.html#ManageProducts-display, copy the "webapp/test/flpSandbox.html#ManageProducts-display" part and paste it after the application URL.

Two zend applications: one in a subdomain, one on root

I'm using Zend for my corporate website. This website contains two seperate applications, namely the website itself (which is a CMS) and the customer panel. The administration panel will be launched on a subdomain, namely customer.domain.com. The website runs on a shared hosting package.
What would be the smartest configuration for this situation?
Thanks,
Martijn
Create the admin panel as a module then use the Hostname router to direct the sub-domain requests to it.
I've choosen the following configuration. On domain-level I've created the application folder. This folder contains two folders, namely 'cms' and 'billings'. I've also created a ServerAlias so that the subdomain points to index.php. In index.php I use PHP's $_SERVER HTTP HOST to determine which application needs to be loaded.