必看贴---关于问问题的几个注意的地方

这里会时不时收到大家问的问题,不管是评论还是发起新的讨论。我这里说一说问问题时我希望你给出的几个基本注意事项,因为我都是默认提问者是带着求知和尽快解决问题的心态来发问的。

开发环境

这里首先提到的就是开发环境,包括但不限于你的:

  • 操作系统,版本最好也有

  • php环境,WAMP,MAMP,或自己配置等,自己配置请相信说明

  • laravel的环境,是使用artisan或homestead等

  • laravel配置,比如你的数据库使用的是什么,Sqlite或者Mysql等

  • ...后续补充

提倡发新帖

  • 如果是跟文章或者视频内容不大相关的内容,请发新帖。这样更好管理和归类,也请你描述清楚你的问题

使用Markdown

希望提问题或者发帖的时候,尽量使用Markdown排版。这样双方都有好处。语法简单参考:

https://laravist.com/discussion/21

对问题负责

  • 认真提出你的问题,然后对问题的回复和讨论请尽量给出回应。不希望丢个问题就跑了

问题尽量具体

也就是说,尽量不要问太宽泛的问题吧,这种问题基本都是仁者见仁智者见智的,而且也没有一个好的标准,基本上不知道怎么回答

976279080

赞,,凡事都得有个规范

ggppc

NGINX配置文件如下
server {
server_name laravel.mengniang.tv ;
listen 80;
index index.php index.html index.htm;
root /usr/share/nginx/laravel/web;

location / {
try_files $uri $uri/ /index.php?$query_string;
}   	#rewrite end


location ~ \.php$ {
    fastcgi_pass   127.0.0.1:9001;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    fastcgi_param  PHP_VALUE         open_basedir=$document_root:/tmp/:/proc/;
    include        fastcgi_params;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp3|wma)$
{
	expires      30d;
}

location ~ .*\.(js|css)$
{
	expires      12h;
}


access_log  /usr/share/nginx/laravel/log/static_access.log access;
error_log  /usr/share/nginx/laravel/log/static_error.log error;

}

这样就造成url是localhost/public 才能访问laravel项目
怎么配置才能使网址变成localhost

ggppc

如果root 是…/public 的话 public同级目录的php文件又不能生效,郁闷

Laravist

没事还是把这个帖子顶起来,太多人学不会这个

alano

提问的艺术http://www.oschina.net/question/124879_45870