Skip to content

Kerrycek/web

 
 

Repository files navigation

vpsFree.cz

This repository contains the source code of https://vpsfree.cz and its translations.

Every translation is in a standalone document root, i.e. cs/ or en/. The site is built using server-side includes and PHP, so the web server must support them.

Shared directories, like css/, js/, obrazky/ and download/ have to be aliased within the document roots of every translation.

Installation

Copy config.php.dist to config.php and fill in the URL to the vpsAdmin API.

Example Apache configuration

<VirtualHost *:80>
	ServerName vpsfree.cz
	DocumentRoot /var/www/web/cs

	Alias /css /var/www/web/css
	Alias /js /var/www/web/js
	Alias /obrazky /var/www/web/obrazky
	Alias /download /var/www/web/download

	<Directory /var/www/web/cs>
		Options +Includes
		AddOutputFilter INCLUDES .html
		SetEnv no-gzip
		ErrorDocument 404 /404.html
	</Directory>
</VirtualHost>

<VirtualHost *:80>
	ServerName vpsfree.org
	DocumentRoot /var/www/web/en

	Alias /css /var/www/web/css
	Alias /js /var/www/web/js
	Alias /obrazky /var/www/web/obrazky
	Alias /download /var/www/web/download

	<Directory /var/www/web/en>
		Options +Includes
		AddOutputFilter INCLUDES .html
		SetEnv no-gzip
		ErrorDocument 404 /404.html
	</Directory>
</VirtualHost>

Known issues

In order for virtual() to work, compression must be disabled, otherwise it results in Content Encoding Error.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 60.3%
  • PHP 23.8%
  • Ruby 13.3%
  • JavaScript 1.5%
  • CSS 1.1%