Skip to content

Instantly share code, notes, and snippets.

@Ivoz
Ivoz / home
Created October 31, 2011 13:41
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log;# debug;
access_log /home/ivo/www/home/access.log;
@Ivoz
Ivoz / home
Created October 31, 2011 13:44
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log;# debug;
access_log /home/ivo/www/home/access.log;
@Ivoz
Ivoz / home
Created October 31, 2011 13:59
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log;# debug;
access_log /home/ivo/www/home/access.log;
@Ivoz
Ivoz / home
Created October 31, 2011 14:21
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log;# debug;
access_log /home/ivo/www/home/access.log;
@Ivoz
Ivoz / home
Created October 31, 2011 14:36
server {
set $domain home;
server_name ~^((?<domain>.+)\.)localhost$;
listen 127.0.0.1:80;
root /home/ivo/www/$domain/public_html;
index index.php index.html;
error_log /home/ivo/www/$domain/error.log;# debug;
@Ivoz
Ivoz / home
Created October 31, 2011 15:14
server {
server_name www.*;
rewrite ^www\.(.+)$ $1$request_uri? redirect;
}
server {
server_name ~^(?<domain>.+)\.localhost$;
listen 127.0.0.1:80;
@Ivoz
Ivoz / home
Created October 31, 2011 15:57
server {
server_name localhost;
rewrite ^ http://default.localhost$request_uri? redirect;
}
server {
server_name ~^(?<domain>.+)\.localhost$;
listen 127.0.0.1:80;
@Ivoz
Ivoz / home
Created October 31, 2011 16:14
server {
server_name localhost;
rewrite ^ http://default.localhost$request_uri? redirect;
}
server {
server_name ~^(?<domain>.+)\.localhost$;
root /home/ivo/www/$domain;
/**
* $RCSfile$
* $Revision: 3657 $
* $Date: 2002-09-09 08:31:31 -0700 (Mon, 09 Sep 2002) $
*
* Adapted from Markus Hahn's Blowfish package so that all functionality is
* in a single source file. Please visit the following URL for his excellent
* package: http://www.hotpixel.net/software.html
*
* Copyright (c) 1997-2002 Markus Hahn <markus_hahn@gmx.net>
<?php
mysql_connect('localhost', 'cake', 'cakephp') or die();
mysql_select_db('cake_noteven') or die();
?>
<?php phpinfo(); ?>