Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (55 sloc) 1.72 KB
== 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
A demo is here
== 1. Use a subdomain ==
This my example config file for :
<VirtualHost *:80>
ProxyPass /
ProxyPassReverse /
ProxyPreserveHost on
ProxyRequests On
ProxyVia On
<Proxy *>
Order allow,deny
Allow from all
==2. Use an alias ==
If you want to get an alias (example:
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 {
location / {
proxy_set_header Host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} is where is launched your application.
It could be somthing like : http://localhost:8080