Xampp virtual host multiple domains tutorial

broken image
broken image

This is the directory where you should put your web pages. ServerAdmin is the admin's email address which can be found on e.g. Then change this line to Listen 127.0.0.1:80. If you want to setup Apache for local development you may want it to be only accessible from your computer. For Internet-access with router, you have to forward the port. The default user is http, which is created automatically during installation. These options in /etc/httpd/conf/nf might be interesting for you:įor security reasons, as soon as Apache is started by the root user (directly or via startup scripts) it switches to this UID. See the full list of Apache configuration directives and the directive quick reference.

broken image

It should display a simple index page.įor optional further configuration, see the following sections. To start Apache, start rvice using systemd.Īpache should now be running. By default, it will serve the directory /srv/http to anyone who visits your website. The default configuration file should be fine for a simple setup. The main configuration file is /etc/httpd/conf/nf, which includes various other configuration files. This article describes how to set up Apache and how to optionally integrate it with PHP.Īpache configuration files are located in /etc/httpd/conf.

broken image

The Apache HTTP Server, or Apache for short, is a very popular web server, developed by the Apache Software Foundation.

broken image