连续复制
一键复制
一键打包
apache
<VirtualHost *:80>
ServerAdmin 896913862@qq.com
DocumentRoot "/Users/mr-yin/workspace/wwwroot/blog/public/"
ServerName lblog.p.com
ServerAlias lblog.p.com
ErrorLog "/private/var/log/apache2/lblog.log"
CustomLog "/private/var/log/apache2/lblog.log" common
<Directory "/Users/mr-yin/workspace/wwwroot/blog/public/">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
nginx
server
{
listen 80;
server_name blog.baidu120.cc;
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/blog.baidu120.cc;
#error_page 404/404.html;
error_page 404 /404.html;
error_page 502 /502.html;
location ~ [^/]\.php(/|$)
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi-56.sock;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
access_log on;
}
location ~ .*\.(js|css)?$
{
expires 12h;
access_log on;
}
access_log /www/wwwlogs/blog.baidu120.cc.log;
}
评论已关闭