- Write simple parts connected by clean interfaces. (Modularity)
- Clarity is better than cleverness. (Clarity)
- Design programs to be connected to other programs. (Composition)
- Separate policy from mechanism; separate interfaces from engines. (Separation)
- Design for simplicity; add complexity only where you must. (Simplicity)
- Write a big program only when it is clear by demonstration that nothing else will do. (Parsimony)
- Design for visibility to make inspection and debugging easier. (Transparency)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName fisheye.dev.example.com | |
# redirection of websvn urls generated by svnmailer | |
RewriteEngine On | |
RewriteCond %{QUERY_STRING} sc=[0-9]+&rev=([0-9]+) | |
RewriteRule ^/([^/]+)/websvn/$ http://%{SERVER_NAME}/changelog/$1/?cs=%1 [R,L] | |
# proxy to fisheye port | |
ProxyPass / http://fisheye.dev.example.com:8060/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName svn.example.com | |
RewriteEngine on | |
RewriteRule (.*) https://svn.example.com$1 [R=301,L] | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName svn.example.com | |
Include example-ssl.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SNAME=${PWD%/*} | |
SNAME=${SNAME##*/} | |
exec 2>&1 | |
exec \ | |
env -i PATH=/bin:/usr/bin PHPRC=/opt/apache-dev/servers/$SNAME \ | |
setuidgid www-dev \ | |
/opt/apache-dev/bin/httpd -D FOREGROUND -D $SNAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec 2>&1 | |
exec env -i FISHEYE_INST=/opt/fecru-inst setuidgid www-data /opt/fecru/bin/run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SSLEngine on | |
SSLCertificateFile /etc/ssl/example.com.pem | |
<FilesMatch "\.(phtml|php)$"> | |
SSLOptions +StdEnvVars | |
</FilesMatch> | |
BrowserMatch ".*MSIE.*" \ | |
nokeepalive ssl-unclean-shutdown \ | |
downgrade-1.0 force-response-1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName phpuc.dev.example.com | |
# NB! It must be slow :-) | |
ExtFilterDefine fixurls mode=output intype=text/html \ | |
cmd="/bin/sed \ | |
-e s/http:\\/\\/localhost:/http:\\/\\/phpuc.dev.example.com:/g \ | |
-e s/\\/phpundercontrol\\//\\//g \ | |
-e s/\\/cruisecontrol\\/artifacts\\//\\/artifacts\\//g \ | |
-e s/\\/cruisecontrol\\/logs\\//\\/logs\\//g \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CHOST="x86_64-pc-linux-gnu" | |
export CFLAGS="-O2 -march=native -pipe" | |
export CXXFLAGS="${CFLAGS}" | |
./configure \ | |
--prefix=/opt/apache-dev \ | |
--disable-filter \ | |
--disable-version \ | |
--disable-asis \ | |
--disable-negotiation \ | |
--disable-actions \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CHOST="x86_64-pc-linux-gnu" | |
export CFLAGS="-O2 -march=native -pipe" | |
export CXXFLAGS="${CFLAGS}" | |
./configure \ | |
--prefix=/opt/${PWD##/*/} \ | |
--with-apxs2=/opt/apache-dev/bin/apxs \ | |
--disable-cgi \ | |
--with-openssl \ | |
--with-zlib \ | |
--enable-bcmath \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Macro Account $name> | |
<Directory "/home/$name/vhosts/"> | |
php_admin_value open_basedir "/home/$name/:/usr/share/php/:/tmp/:/usr/bin/" | |
php_value error_log "/home/$name/vhosts/php_error.log" | |
php_value include_path ".:/usr/share/php" | |
php_flag log_errors On | |
php_flag short_open_tag On | |
</Directory> | |
</Macro> |
OlderNewer