Skip to content

Commit 915bfa4

Browse files
Update Example (httpd.conf) Apache Server.md
1 parent 7ba0ae2 commit 915bfa4

File tree

1 file changed

+33
-15
lines changed

1 file changed

+33
-15
lines changed

Apache Server/conf/Example (httpd.conf) Apache Server.md

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
***
3-
## httpd.conf Virtual Host
2+
### httpd.conf Virtual Host
3+
44
***
55
```httpd.conf
66
@@ -20,18 +20,15 @@ Listen 80
2020
#SSLOptions +StdEnvVars
2121
#Options Indexes FollowSymLinks MultiViews
2222
23-
2423
AllowOverride All
25-
26-
27-
28-
24+
25+
2926
</Directory>
3027
3128
<IfModule dir_module>
3229
33-
DirectoryIndex index.php index.html index.shtml
34-
DirectoryIndex HomeServer.html
30+
DirectoryIndex HomeServer.html
31+
DirectoryIndex index.php index.html index.shtml
3532
# DirectoryIndex
3633
# DirectoryIndex
3734
# DirectoryIndex public install installer
@@ -66,16 +63,37 @@ ErrorDocument 403 /403.html
6663
#</VirtualHost>
6764
6865
<VirtualHost *:80>
69-
ServerName SampleMTDBNew.com
7066
71-
ServerAlias SampleMTDBNew.com
72-
ServerAdmin admin@localhost
67+
ServerName www.SampleEmailAddresses.net
68+
ServerAlias www.SampleEmailAddresses.net
69+
ServerAdmin admin@SampleEmailAddresses.net
70+
71+
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/SampleEmailAddresses.net"
72+
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/SampleEmailAddresses.net">
73+
74+
Options Indexes FollowSymLinks MultiViews
75+
76+
AllowOverride All
7377
78+
79+
</Directory>
80+
</VirtualHost>
81+
82+
83+
<VirtualHost *:80>
84+
85+
#ServerName SampleMTDBNew.com
86+
#ServerAlias SampleMTDBNew.com
87+
#ServerAdmin admin@localhost
88+
89+
ServerName www.Sample-MTDB.Ultimate.com
90+
ServerAlias www.Sample-MTDB.Ultimate.com
91+
ServerAdmin admin@Sample-MTDB.Ultimate.com
92+
7493
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/mtdb"
75-
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/mtdb">
94+
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/mtdb">
7695
77-
#SSLOptions +StdEnvVars
78-
#Options Indexes FollowSymLinks MultiViews
96+
Options Indexes FollowSymLinks MultiViews
7997
8098
AllowOverride All
8199

0 commit comments

Comments
 (0)