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 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.
11
12 Once you have installed and checked the status of Apache, go to its Web-root directory and create a new directory as mentioned below.
13 %% cd /srv/www/htdocs/ %%
14
15
16
17 ----
18
19
20
21 **/opt/lampp/etc/httpd.conf**
25 %%# Virtual hosts
26 Include etc/extra/httpd-vhosts.conf %%
27
28 ===Weblinks==
29 https://doc.opensuse.org/documentation/leap/reference/html/book-reference/cha-apache2.html
30
31 ((https://doc.opensuse.org/documentation/leap/reference/html/book-reference/cha-apache2.html#sec-apache2-configuration-manually-configfiles-etc-apache2))
32 ===Create a custom domain in the hosts file of your system===
33
34 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.
66 Start apache and mysql (entire XAMPP).
67 Navigate in your browser to ##~http://myproject/## or ##~http://127.0.0.3/##.
68