@@ -17,8 +17,10 @@ EWF Deployment
1717
18181 . 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+ ```
22242. Copy the generated exe file and the www content.
2325
2426 ```
@@ -42,12 +44,14 @@ EWF Deployment
4244
4345*Tip:*
4446To 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
4952http://perishablepress.com/stupidhtaccesstrics/
5053
54+ ```
5155 Options +ExecCGI +Includes +FollowSymLinks Indexes
5256 AddHandler cgiscript exe
5357 <IfModule mod_rewrite.c>
@@ -59,7 +63,7 @@ http://perishablepress.com/stupidhtaccesstrics/
5963 RewriteRule ^(.* )$ $service/$1
6064 RewriteRule .* [ E=HTTP_AUTHORIZATION:%{HTTP: Authorization },L]
6165 </IfModule
62-
66+ ```
6367Replace $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
77811. 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+ ```
82872. 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+ ```
96101Check 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
101108By default Apache does not comes with fcgid module, so you will need to
102109download it, and put the module under Apache2/modules
103110
104111####.htaccess FCGI
105112http://perishablepress.com/stupidhtaccesstricks/
106113
114+ ```
107115 Options +ExecCGI +Includes +FollowSymLinks Indexes
108116 <IfModule mod_fcgid.c>
109117 AddHandler fcgidscript .ews
@@ -119,7 +127,7 @@ http://perishablepress.com/stupidhtaccesstricks/
119127 RewriteCond %{REQUEST_URI} !service.ews
120128 RewriteRule ^(.*)$ service.ews/$1 RewriteRule .* [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
121129 </IfModule>
122-
130+ ```
123131Replace $service with the name of your executable $service, for example app_service.exe
124132You will need to create an service.ews file, this file will be located at the same place where you
125133copy your app service executable.
0 commit comments