Skip to content

Commit a5a257f

Browse files
committed
Update format
1 parent bde0e29 commit a5a257f

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

Deployment.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ EWF Deployment
1717
1818
1. Build EWF application.
1919

20+
```
2021
ec ­config app.ecf ­target app_cgi ­finalize ­c_compile ­project_path .
2122
Note: change app.ecf and target app_cgi  based on your own configuration.
23+
```
2224
2. Copy the generated exe file and the www content.
2325
2426
```
@@ -42,12 +44,14 @@ EWF Deployment
4244
4345
*Tip:*
4446
To check the syntax of your httpd.conf file. From command line run the following.
45-
47+
48+
```
4649
$>httpd - t
47-
50+
```
4851
####.htaccess CGI
4952
http://perishablepress.com/stupid­htaccess­trics/
5053
54+
```
5155
Options +ExecCGI +Includes +FollowSymLinks ­Indexes
5256
AddHandler cgi­script exe
5357
<IfModule mod_rewrite.c>
@@ -59,7 +63,7 @@ http://perishablepress.com/stupid­htaccess­trics/
5963
  RewriteRule ^(.*)$ $service/$1
6064
RewriteRule .* ­ [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
6165
</IfModule
62-
66+
```
6367
Replace $service with the name of your executable service, for example app_service.exe
6468
6569
@@ -76,12 +80,13 @@ Replace $service with the name of your executable service, for example
7680
7781
1. Build EWF application
7882
83+
```
7984
ec ­config app.ecf ­target app_fcgi ­finalize ­c_compile ­project_path .
8085
Note: change app.ecf and target app_fcgi  based on your own configuration.
81-
86+
```
8287
2. Copy the generated exe file and the www content
8388
84-
89+
```
8590
Copy the app.exe and the folder "www"  into a folder served by apache2, for example under
8691
<APACHE_PATH>/htdocs.
8792
<APACHE_PATH> = path to your apache installation
@@ -92,18 +97,21 @@ Replace $service with the name of your executable service, for example
9297
AllowOverride All --
9398
Require all granted -- this is required in Apache 2.4.4
9499
</Directory>
95-
100+
```
96101
Check that you have the following modules enabled.
97102
103+
```
98104
LoadModule rewrite_module modules/mod_rewrite.so
99105
LoadModule fcgid_module modules/mod_fcgid.so
106+
```
100107
101108
By default Apache does not comes with fcgid module, so you will need to
102109
download it, and put the module under Apache2/modules
103110
104111
####.htaccess FCGI
105112
http://perishablepress.com/stupid­htaccess­tricks/
106113
114+
```
107115
Options +ExecCGI +Includes +FollowSymLinks ­Indexes
108116
<IfModule mod_fcgid.c>
109117
AddHandler fcgid­script .ews
@@ -119,7 +127,7 @@ http://perishablepress.com/stupid­htaccess­tricks/
119127
  RewriteCond %{REQUEST_URI} !service.ews
120128
  RewriteRule ^(.*)$ service.ews/$1  RewriteRule .* ­ [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
121129
</IfModule>
122-
130+
```
123131
Replace $service with the name of your executable $service, for example app_service.exe
124132
You will need to create an service.ews file, this file will be located at the same place where you
125133
copy your app service executable.

0 commit comments

Comments
 (0)