Create a little website, easily editable...
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
editor Some modification was on my computer... Sep 30, 2011
tinymce/jscripts/tiny_mce Remove nicedit, and add TinyMCE Jul 1, 2011
Makefile Some correction in the makefile Jul 1, 2011
README Update README Sep 30, 2011


== 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