Skip to content

Instantly share code, notes, and snippets.

@wokamoto
wokamoto / example.com.backend.conf
Created October 4, 2012 15:51
網元用 サブドメイン型マルチサイト WP nginx 設定例 (backend.conf)
server {
listen unix:/var/run/nginx-backend.sock;
server_name example.com *.example.com;
root /var/www/vhosts/example.com;
index index.php index.html index.htm;
access_log /var/log/nginx/example.com.backend.access.log backend;
keepalive_timeout 25;
port_in_redirect off;
@wokamoto
wokamoto / example.com.conf
Created October 4, 2012 15:50
網元用 サブドメイン型マルチサイト WP nginx 設定例
server {
listen 80;
server_name example.com *.example.com;
root /var/www/vhosts/example.com;
index index.html index.htm;
charset utf-8;
access_log /var/log/nginx/example.com.access.log main;
error_log /var/log/nginx/example.com.error.log;
@miya0001
miya0001 / gist:2864806
Created June 3, 2012 19:54
リバースプロキシやCDN,キャッシュ系のプラグインと仲良しで子テーマにも対応しやすいCSSの読み込み方
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/style.css?ver=<?php echo filemtime(get_template_directory().'/style.css'); ?>" />
<?php if (is_child_theme()): ?>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css?ver=<?php echo filemtime(get_stylesheet_directory().'/style.css') ?>" />
<?php endif; ?>