Skip to content

Commit 7ba0ae2

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

File tree

1 file changed

+150
-5
lines changed

1 file changed

+150
-5
lines changed

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

Lines changed: 150 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,155 @@
11

2-
#### C:\Windows\System32\drivers\etc\hosts
2+
***
3+
## httpd.conf Virtual Host
4+
***
5+
```httpd.conf
6+
7+
Listen 80
8+
9+
<VirtualHost *:80>
10+
ServerName localhost
11+
12+
ServerAlias localhost
13+
ServerAdmin admin@localhost
14+
15+
#localhost
16+
17+
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/"
18+
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/">
19+
20+
#SSLOptions +StdEnvVars
21+
#Options Indexes FollowSymLinks MultiViews
22+
23+
24+
AllowOverride All
25+
26+
27+
28+
29+
</Directory>
30+
31+
<IfModule dir_module>
32+
33+
DirectoryIndex index.php index.html index.shtml
34+
DirectoryIndex HomeServer.html
35+
# DirectoryIndex
36+
# DirectoryIndex
37+
# DirectoryIndex public install installer
38+
39+
</IfModule>
40+
41+
ErrorDocument 500 /500.html
42+
ErrorDocument 404 /404.html
43+
ErrorDocument 403 /403.html
44+
45+
46+
</VirtualHost>
47+
48+
49+
#<VirtualHost *:8000>
50+
51+
# ServerName HomePremiumSampleTube.server.tv
52+
# ServerAlias HomePremiumSampleTube.server.tv
53+
# ServerAdmin admin@HomePremiumSampleTube.server.tv
54+
55+
56+
# DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube/"
57+
# <Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube/">
58+
59+
# SSLOptions +StdEnvVars
60+
61+
# Options Indexes FollowSymLinks MultiViews
62+
# AllowOverride All
63+
64+
65+
#</Directory>
66+
#</VirtualHost>
67+
68+
<VirtualHost *:80>
69+
ServerName SampleMTDBNew.com
70+
71+
ServerAlias SampleMTDBNew.com
72+
ServerAdmin admin@localhost
73+
74+
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/mtdb"
75+
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/mtdb">
76+
77+
#SSLOptions +StdEnvVars
78+
#Options Indexes FollowSymLinks MultiViews
79+
80+
AllowOverride All
381
82+
83+
</Directory>
84+
</VirtualHost>
85+
86+
<VirtualHost *:80>
87+
88+
ServerName HomePremiumSample.com
89+
90+
ServerAlias HomePremiumSample.com
91+
ServerAdmin admin@HomePremiumSample.com
92+
93+
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSample"
94+
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSample">
95+
96+
#SSLOptions +StdEnvVars
97+
#Options Indexes FollowSymLinks MultiViews
98+
99+
AllowOverride All
100+
101+
</Directory>
102+
</VirtualHost>
103+
104+
105+
<VirtualHost *:80>
106+
ServerName HomePremiumSampleTube.server.tv
107+
108+
ServerAlias HomePremiumSampleTube.server.tv
109+
ServerAdmin admin@HomePremiumSampleTube.server.tv
110+
111+
112+
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube"
113+
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube">
114+
115+
#SSLOptions +StdEnvVars
116+
#Options Indexes FollowSymLinks MultiViews
117+
118+
AllowOverride All
119+
120+
121+
</Directory>
122+
</VirtualHost>
123+
124+
125+
<VirtualHost *:80>
126+
ServerAdmin root@localhost
127+
ServerAlias SamplePhpMyAdmin.com
128+
129+
ServerName SamplePhpMyAdmin.com
130+
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin"
131+
132+
133+
#UseCanonicalName Off
134+
135+
# SSLCertificateFile "C:/Users/Credit/Documents/#Server(htdocs)(www)/SSL/crt/SamplePhpMyAdmin.com.crt"
136+
# SSLCertificateKeyFile "C:/Users/Credit/Documents/#Server(htdocs)(www)/SSL/key/SamplePhpMyAdmin.com.key"
137+
138+
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin">
139+
140+
#SSLOptions +StdEnvVars
141+
#Options Indexes FollowSymLinks MultiViews
142+
143+
AllowOverride All
144+
145+
146+
</Directory>
147+
</VirtualHost>
148+
149+
```
150+
***
151+
#### C:\Windows\System32\drivers\etc\hosts
152+
***
4153
```hosts
5154
# Copyright (c) 1993-2009 Microsoft Corp.
6155
#
@@ -49,7 +198,3 @@
49198
127.0.0.1 www.ServerSourceAddress.com
50199
51200
```
52-
53-
```httpd.conf
54-
55-
```

0 commit comments

Comments
 (0)