Skip to content

Commit 2ba2cb0

Browse files
Update README.md
1 parent 602a8cb commit 2ba2cb0

File tree

1 file changed

+90
-36
lines changed

1 file changed

+90
-36
lines changed

README.md

Lines changed: 90 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,82 @@
11
### Example Apache Server
2-
***
2+
**************************
33
- [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+
```
480

581
<!--
682
- [How to Solve Port 80 Problems When Running Apache](#how-to-solve-port-80-problems-when-running-apache)
@@ -11,22 +87,13 @@
1187
- [x] ``Example Apache Server (PHP) httpd.conf``
1288
***
1389

14-
1590
```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-
2191
PHPIniDir "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 7.3.15/"
2292
LoadModule php7_module "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 7.3.15/php7apache2_4.dll"
2393
24-
25-
AddType application/x-httpd-php .php
26-
94+
AddType application/x-httpd-php .php
2795
```
2896

29-
3097
***
3198
- [x] ``Example Apache Server (Virtual Host) httpd.conf``
3299
***
@@ -52,13 +119,12 @@ Listen 80
52119
53120
ErrorDocument 500 /500.html
54121
ErrorDocument 404 /404.html
55-
ErrorDocument 403 /403.html
56122
57123
</VirtualHost>
58124
59125
60-
#Listen 8000
61126
127+
#Listen 8000
62128
#<VirtualHost *:8000>
63129
64130
# ServerName HomePremiumSampleTube.server.tv
@@ -77,10 +143,8 @@ ErrorDocument 403 /403.html
77143
78144
#</Directory>
79145
80-
81146
#ErrorDocument 500 /500.html
82147
#ErrorDocument 404 /404.html
83-
#ErrorDocument 403 /403.html
84148
85149
86150
#</VirtualHost>
@@ -106,17 +170,13 @@ ErrorDocument 403 /403.html
106170
107171
ErrorDocument 500 /500.html
108172
ErrorDocument 404 /404.html
109-
ErrorDocument 403 /403.html
110-
111173
112174
</VirtualHost>
113175
114-
115176
<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
120180
121181
122182
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube"
@@ -133,18 +193,16 @@ ErrorDocument 403 /403.html
133193
134194
ErrorDocument 500 /500.html
135195
ErrorDocument 404 /404.html
136-
ErrorDocument 403 /403.html
137196
138197
139198
</VirtualHost>
140199
141200
142-
143201
<VirtualHost *:80>
144-
ServerName SampleMTDBNew.com
202+
ServerName SampleMTDBNew.com
145203
146-
ServerAlias SampleMTDBNew.com
147-
ServerAdmin admin@localhost
204+
ServerAlias SampleMTDBNew.com
205+
ServerAdmin admin@localhost
148206
149207
150208
DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/mtdb"
@@ -174,13 +232,12 @@ php_flag register_globals on
174232
</VirtualHost>
175233
176234
177-
178235
<VirtualHost *:80>
179-
ServerAdmin root@localhost
180-
ServerAlias SamplePhpMyAdmin.com
236+
ServerAdmin root@localhost
237+
ServerAlias SamplePhpMyAdmin.com
181238
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"
184241
185242
186243
#UseCanonicalName Off
@@ -189,10 +246,7 @@ php_flag register_globals on
189246
# SSLCertificateKeyFile "C:/Users/Credit/Documents/#Server(htdocs)(www)/SSL/key/SamplePhpMyAdmin.com.key"
190247
191248
<Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin">
192-
193-
194-
195-
249+
196250
SSLOptions +StdEnvVars
197251
198252
Options Indexes FollowSymLinks MultiViews

0 commit comments

Comments
 (0)