Versionsunterschiede von Test Server / Setting Up Virtual Hosts




← Vorherige Änderung





6
7 To setup a custom virtual host, we need to follow these steps:
8
9 ===Allow virtual hosts===
10
11 By default, Apache2 won't use the ##/etc/apache2/vhosts.d/*.conf## files (the location of the virtual hosts), therefore we need to indicate that this file will be included during the runtime of Apache.
12
13 ----
14
15
16
17 **/opt/lampp/etc/httpd.conf**
21 %%# Virtual hosts
22 Include etc/extra/httpd-vhosts.conf %%
23
24
25
26 ((https://doc.opensuse.org/documentation/leap/reference/html/book-reference/cha-apache2.html#sec-apache2-configuration-manually-configfiles-etc-apache2))
27 ===Create a custom domain in the hosts file of your system===
28
29 You need to create a custom domain where our apache virtual host will point to. This domain will be normally an ip (127.0.0.xx based) and a custom name.
61 Start apache and mysql (entire XAMPP).
62 Navigate in your browser to ##~http://myproject/## or ##~http://127.0.0.3/##.
63