Create a little website, easily editable...
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.


== 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;
    proxy_pass                  ;
} is where is launched your application.
It could be somthing like : http://localhost:8080