Versionsunterschiede von Test Server / Setting Up Virtual Hosts
16 | |
---|---|
17 | Create a new file in the above mentioned directory by using the following command. |
18 | |
19 | %% echo -e '<html>\n<html>\n\t<body>\n\t\t<h1> |
20 | |
21 | Create a new virtualhost configuration file in the below mentioned directory and configure it as follows. |
22 | |
23 | /etc/apache2/conf.d/vhost.conf |
24 | |
25 | %% sudo su%% |
26 | %%echo -e 'DocumentRoot "srv/www/htdocs/ |
27 | |
28 | Did it work? |
29 | %% cat /etc/apache2/conf.d/vhost.conf%% |
… | … |
37 | |
38 | ---- |
39 | |
40 | |
41 | /etc/hosts |
42 | |
43 | |
44 | /etc/apache2/httpd.conf |
45 | /etc/apache2/conf.d/vhost.conf |
46 | /etc/apache2/vhosts.d/*.conf |
47 | |
48 | |
49 | /etc/apache2/default-server.conf |
50 | |
51 | |
52 | |
53 | **/opt/lampp/etc/httpd.conf** |