-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
74 lines (55 loc) · 1.72 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
== OpaCms ==
Author Matthieu Guffroy
build : make
launch : ./opacms.exe (port 8080)
./opacms.exe --server-port nnnn (port nnnn)
The editor :
The wysiwyg editor is TinyMCE.
It's done using some bypass
Edit page :
goto /user or /admin
login with admin:admin
go back to the / page
you can edit the page and create new one
DEMO :
A demo is here
=> http://opacmsdemo.mattgu.com
=== TUTO APACHE ===
== 1. Use a subdomain ==
This my example config file for opacmsdemo.mattgu.com :
<VirtualHost *:80>
ServerName opacmsdemo.mattgu.com:80
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
ProxyPreserveHost on
ProxyRequests On
ProxyVia On
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
</VirtualHost>
==2. Use an alias ==
If you want to get an alias (example: www.mysite.com/opacms)
You must have :
ProxyPass /opacms http://localhost:8080/opacms
ProxyPassReverse /opacms http://localhost:8080/opacms
ProxyPreserveHost on
ProxyVia On
The Two first line are indeed very usefull,
the ProxyPreserveHost is also really import for OPA. If not you could have some problem.
I don't know if the ProxyVia is important you could try without.
Then you need to launch your server with the option (--base-url opacms).
==== Solution with nginx ====
Here is my nginx file, for the demo :
server {
server_name opacmsdemo.mattgu.com;
location / {
proxy_set_header Host opacmsdemo.mattgu.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://10.0.0.106;
}
}
http://10.0.0.106 is where is launched your application.
It could be somthing like : http://localhost:8080