1
1
### Example Apache Server
2
- ***
2
+ **************************
3
3
- [ unBlock Windows Problem Fix Apache Server] ( #unblock-windows-problem-fix-apache-server )
4
+ *********************************************************************************************
5
+ #### (Microsoft Windows 8.1 Pro) bit-x64 ** `` C:\Windows\System32\drivers\etc\hosts `` **
6
+ ``` hosts
7
+ # Copyright (c) 1993-2009 Microsoft Corp.
8
+ #
9
+ # This is a sample HOSTS file used by Microsoft TCP/IP for Windows provided by MajorGeeks.Com
10
+ #
11
+ # This file contains the mappings of IP addresses to host names. Each
12
+ # entry should be kept on an individual line. The IP address should
13
+ # be placed in the first column followed by the corresponding host name.
14
+ # The IP address and the host name should be separated by at least one
15
+ # space.
16
+ #
17
+ # Additionally, comments (such as these) may be inserted on individual
18
+ # lines or following the machine name denoted by a '#' symbol.
19
+ #
20
+ # For example:
21
+ #
22
+ # 102.54.94.97 rhino.acme.com # source server
23
+ # 38.25.63.10 x.acme.com # x client host
24
+ # localhost name resolution is handled within DNS itself.
25
+ # 127.0.0.1 localhost
26
+ # ::1 localhost
27
+
28
+ # Home Sample
29
+ 127.0.0.1 SamplePhpMyAdmin.com
30
+ 127.0.0.1 SampleDirectoryServersNetwork.com
31
+
32
+ # Home Example
33
+ 127.0.0.1 SampleAllServersNetwork.WordPress.com
34
+ 127.0.0.1 SampleAllServersNetwork.com
35
+ 127.0.0.1 SampleAdminServersNetwork.WordPress.com
36
+ 127.0.0.1 SampleAdminServersNetwork.com
37
+
38
+ # Home Premium
39
+ 127.0.0.1 www.HomePremiumSampleTube.Home.com
40
+ 127.0.0.1 www.HomePremiumSampleServer.Home.com
41
+
42
+ # Home Manager
43
+ 127.0.0.1 www.ManagerServer.com
44
+ 127.0.0.1 www.ExampleServerRoot.com
45
+ 127.0.0.1 www.DomainHosting.Manager.com
46
+ 127.0.0.1 www.ServerSourceAddress.com
47
+
48
+ ```
49
+ #### ** `` C:\Apache24\conf\ `` **
50
+ #### **** ```` WordPress.conf ```` ****
51
+ ``` WordPress.conf
52
+ <VirtualHost *:80>
53
+ ServerName SampleAllServersNetwork.WordPress.com
54
+ ServerAdmin AdminMail@SampleAllServersNetwork.WordPress.Default.com
55
+ DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/WordPress/Home"
56
+ <Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/WordPress/Home">
57
+ # BEGIN WordPress
58
+ RewriteEngine On
59
+ RewriteBase /
60
+ RewriteRule ^index\.php$ - [L]
61
+
62
+ # uploaded files
63
+ RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
64
+
65
+ # add a trailing slash to /wp-admin
66
+ RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
67
+ RewriteCond %{REQUEST_FILENAME} -f [OR]
68
+ RewriteCond %{REQUEST_FILENAME} -d
69
+ RewriteRule ^ - [L]
70
+ RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
71
+ RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
72
+ RewriteRule . index.php [L]
73
+ # END WordPress
74
+
75
+ AllowOverride None
76
+
77
+ </Directory>
78
+ </VirtualHost>
79
+ ```
4
80
5
81
<!--
6
82
- [How to Solve Port 80 Problems When Running Apache](#how-to-solve-port-80-problems-when-running-apache)
11
87
- [x] `` Example Apache Server (PHP) httpd.conf ``
12
88
***
13
89
14
-
15
90
``` httpd.conf
16
-
17
- #PHPIniDir "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/"
18
- #LoadModule php5_module "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/php5apache2_4.dll"
19
-
20
-
21
91
PHPIniDir "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 7.3.15/"
22
92
LoadModule php7_module "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 7.3.15/php7apache2_4.dll"
23
93
24
-
25
- AddType application/x-httpd-php .php
26
-
94
+ AddType application/x-httpd-php .php
27
95
```
28
96
29
-
30
97
***
31
98
- [x] `` Example Apache Server (Virtual Host) httpd.conf ``
32
99
***
@@ -52,13 +119,12 @@ Listen 80
52
119
53
120
ErrorDocument 500 /500.html
54
121
ErrorDocument 404 /404.html
55
- ErrorDocument 403 /403.html
56
122
57
123
</VirtualHost>
58
124
59
125
60
- #Listen 8000
61
126
127
+ #Listen 8000
62
128
#<VirtualHost *:8000>
63
129
64
130
# ServerName HomePremiumSampleTube.server.tv
@@ -77,10 +143,8 @@ ErrorDocument 403 /403.html
77
143
78
144
#</Directory>
79
145
80
-
81
146
#ErrorDocument 500 /500.html
82
147
#ErrorDocument 404 /404.html
83
- #ErrorDocument 403 /403.html
84
148
85
149
86
150
#</VirtualHost>
@@ -106,17 +170,13 @@ ErrorDocument 403 /403.html
106
170
107
171
ErrorDocument 500 /500.html
108
172
ErrorDocument 404 /404.html
109
- ErrorDocument 403 /403.html
110
-
111
173
112
174
</VirtualHost>
113
175
114
-
115
176
<VirtualHost *:80>
116
- ServerName HomePremiumSampleTube.server.tv
117
-
118
- ServerAlias HomePremiumSampleTube.server.tv
119
- ServerAdmin admin@HomePremiumSampleTube.server.tv
177
+ ServerName HomePremiumSampleTube.server.tv
178
+ ServerAlias HomePremiumSampleTube.server.tv
179
+ ServerAdmin admin@HomePremiumSampleTube.server.tv
120
180
121
181
122
182
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube"
@@ -133,18 +193,16 @@ ErrorDocument 403 /403.html
133
193
134
194
ErrorDocument 500 /500.html
135
195
ErrorDocument 404 /404.html
136
- ErrorDocument 403 /403.html
137
196
138
197
139
198
</VirtualHost>
140
199
141
200
142
-
143
201
<VirtualHost *:80>
144
- ServerName SampleMTDBNew.com
202
+ ServerName SampleMTDBNew.com
145
203
146
- ServerAlias SampleMTDBNew.com
147
- ServerAdmin admin@localhost
204
+ ServerAlias SampleMTDBNew.com
205
+ ServerAdmin admin@localhost
148
206
149
207
150
208
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/mtdb"
@@ -174,13 +232,12 @@ php_flag register_globals on
174
232
</VirtualHost>
175
233
176
234
177
-
178
235
<VirtualHost *:80>
179
- ServerAdmin root@localhost
180
- ServerAlias SamplePhpMyAdmin.com
236
+ ServerAdmin root@localhost
237
+ ServerAlias SamplePhpMyAdmin.com
181
238
182
- ServerName SamplePhpMyAdmin.com
183
- DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin"
239
+ ServerName SamplePhpMyAdmin.com
240
+ DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin"
184
241
185
242
186
243
#UseCanonicalName Off
@@ -189,10 +246,7 @@ php_flag register_globals on
189
246
# SSLCertificateKeyFile "C:/Users/Credit/Documents/#Server(htdocs)(www)/SSL/key/SamplePhpMyAdmin.com.key"
190
247
191
248
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin">
192
-
193
-
194
-
195
-
249
+
196
250
SSLOptions +StdEnvVars
197
251
198
252
Options Indexes FollowSymLinks MultiViews
0 commit comments