Can you run asp.net on apache




















How do I run ASP. NET website on windows apache server? Please Sign up or sign in to vote. See more: C. How do i run my asp. NET file over it? Posted Nov pm Gaurav Saini. Add a Solution. Top Rated Most Recent. Accept Solution Reject Solution. NET itself won't be able to run on Apache web server because it is strictly tied to the components and services provided by IIS on Windows.

This means, a dead end here. NET web app against Mono, that can be worked against Linux or other platforms, and other web servers too. You can check the documentation and then make required changes to deploy the web app on Apache servers. The Mono project is the authoritative project for running. NET code on non-Microsoft platforms. You can read up on it here:. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to run ASP. Ask Question. Asked 10 years, 8 months ago. A complete list of available runtime identifiers is available on docs. We can then build the application for the Ubuntu The —c switch specifies the build configuration name and the -r switch specifies the name of the runtime to bundle platform specific binaries for. If we do not specify these switches, the dotnet command will build in Debug configuration and publish the contents of the application assuming that a.

We will need to grant execution privileges on the application, by executing the following command:. Notice that on Linux and Mac environments, the startup application generated for our project is the name of the project without an extension.

On Windows, this application would be named MyApp. You should then see the following output to indicate that the web application is running properly:. Finally, let's create a startup script that ensures our application is running from the correct folder. The next step is to configure Apache to run as a reverse-proxy in front of the application. First, you will want to ensure that you have the latest version of Apache installed and ready to go.

Update your apt configuration and install the latest version of Apache with the following commands:. This configuration creates a virtual host that listens to any request coming on port 80 and pass all requests received starting at the root folder location to the service listening on the local machine on port the default for ASP. NET Core. The proxy is configured for bi-directional communication, so that replies from port are returned to the requestor.

Finally, some log locations are configured. Apache will start with our server and be configured to hand off requests to ASP. NET Core application to start as service and operate in concert with the Apache server. To configure this, we need to add a service definition file to our system. This configuration will instruct the apache user to start the StartMyApp script that we wrote earlier. If there is a problem, it will wait 10 seconds and attempt to restart the application.

Finally, the information about this application will be written to the system log with the identifier "myapp". This is a very basic Apache configuration, and there are many other options that you may want to configure before hosting your application on the Internet. NET Core application running behind the Apache server. Additionally, you may want to configure a firewall in front of your Linux server to only allow ports 80 and if you configure SSL through. NET Core allows us to build our. NET web applications where we want and deploy to any service that we want.

The Telerik controls for ASP. NET Core are built with. Some people use it for production, but this server is not likely going to ever grow to support all the features that Apache has.

Have you changed the httpd. Use the asp. NET file types AddHandler asp. Allow asp. For all virtual ASP. The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Asked by:. Archived Forums. Installation and Setup of ASP.

NET installed and running on your system. Sign in to vote. Thanks, Brent. Tuesday, February 14, PM. User posted Have you gotten any web page to be served by Apache?



0コメント

  • 1000 / 1000