Listen 4080 # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. ServerAdmin logicmoo@gmail.com ServerName logicmoo.org DocumentRoot /opt/logicmoo_workspace/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined DirectoryIndex index.html index.htm index.php welcome.html Options +Indexes AllowOverride All Options FollowSymLinks Options SymLinksIfOwnerMatch Order allow,deny Allow from all Require all granted # For most configuration files from conf-available/, which are # enabled or disabled at a global level, its is possible to # include a line for only one particular virtual host. For prologmoo the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf AddType text/html .php .phps RewriteEngine On ProxyPreserveHost On RewriteCond "$1.php" -f RewriteCond "$1.html" !-f RewriteRule "^(.*).html$" "$1.php" #RewriteCond %{REQUEST_URI} ^/$ [OR] #RewriteCond %{REQUEST_URI} ^/downloads.* [OR] #RewriteCond %{REQUEST_URI} ^/index.*$ [OR] #RewriteCond %{REQUEST_URI} ^/welcome.*$ [OR] #RewriteCond %{DOCUMENT_ROOT}/$1 -f [OR] #RewriteCond %{DOCUMENT_ROOT}/$1 -d [OR] #RewriteCond %{DOCUMENT_ROOT}/$1 -l #RewriteRule (.*) - [S,L] RewriteCond %{REQUEST_URI} !^/3020.* RewriteCond %{REQUEST_URI} !^/port.* RewriteCond %{REQUEST_URI} !^/stat.* RewriteCond %{REQUEST_URI} !^/butt.* RewriteCond %{REQUEST_URI} !^/local.js RewriteCond %{REQUEST_URI} !^/ctl.* RewriteCond %{REQUEST_URI} !.*php RewriteCond %{REQUEST_URI} !^/ws.* RewriteCond %{REQUEST_URI} !^/ef.* RewriteCond %{REQUEST_URI} !^/$ RewriteCond %{REQUEST_URI} !^.*/index.*$ RewriteCond %{REQUEST_URI} !^.*/welcome.*$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-l RewriteRule "^/(.*)" "http://localhost:3020/$1" [P,L] ProxyPassReverse / http://localhost:3020