码迷,mamicode.com
首页 >  
搜索关键字:document_root    ( 136个结果
thinkphp 5.0 lnmp环境下 无法访问,报错500(public目录)
两种方法: 1.修改fastcgi的配置文件 /usr/local/nginx/conf/fastcgi.conf fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/../:/tmp/:/proc/"; 2.这个时候需要在php.i ...
分类:Web程序   时间:2018-04-03 17:37:34    阅读次数:1121
ngx_http_core_module模块
一、与套接字相关的配置:1、server{...}配置一个虚拟主机server{listenaddress[:PORT]|PORT;server_nameSERVER_NAME;root/PATH/TO/DOCUMENT_ROOT}2、listenPORT|address[:PORT]|unix:/PATH/TO/SOCKET_FILElistenaddress[:PORT][default_se
分类:Web程序   时间:2018-03-29 16:42:52    阅读次数:192
django 内置upload_to
使用django默认的提供uploadtopart1model:upload_to使用相对路径settings.pyurls.py添加+static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)后台,注册到admin后台就可上传保存目录part2
分类:其他好文   时间:2018-03-21 14:10:50    阅读次数:190
XML Parser Errors See Details for more Information XML Parser Error on line 1: Document root ele
1、错误描写叙述XML Parser Errors See Details for more Information XML Parser Error on line 1: Document root element "generatorConfiguration", must match DOCT ...
分类:其他好文   时间:2018-01-14 19:30:59    阅读次数:393
php制作公司五章,圆形印章和椭圆形印章,正方形印章
都是写死的,代码重复太多,没有搜到椭圆的文字均匀分布的,数学也不好,有哪位大神能算一下. function signtest(){ $name = "北京市阿斯达四大有限责任公司"; $path = $_SERVER["DOCUMENT_ROOT"] . '/data/sign/' . date(" ...
分类:Web程序   时间:2017-11-13 20:01:35    阅读次数:393
linux php页面打开报404 file not found
在本地装了虚拟机,并安装了LNMP环境,安装都正常,启动也正常,但发现配置号nginx后,打开PHP页面提示file not found,但访问html页面不影响。 网上找了各种资料,都说让把 修改成: 但我nginx配置中本来就已改成 $document_root ,所以这办法并不适合我的问题。 ...
分类:Web程序   时间:2017-10-13 17:05:00    阅读次数:2262
php使用include报错require_once(../include.php): failed to open stream: No such file or directo
引入路径的问题,建议加入include_once $_SERVER['DOCUMENT_ROOT']."/include.php";意思是获取网站根目中的include.php 截图如下: ...
分类:Web程序   时间:2017-10-11 18:16:47    阅读次数:355
django上传图片
1.seeting中设置#上传文件,资源配置MEDIA_URL=‘/dimples/‘MEDIA_ROOT=os.path.join(BASE_DIR,‘dimples‘)2.model只存储路径p_w_picpath=models.ImageField(upload_to=‘p_w_picpath/%Y/%m‘,default=u‘p_w_picpath/default.png‘,max_length=100)upload_to=:指明文件的路径(p_w_pi..
分类:Web程序   时间:2017-09-16 11:56:09    阅读次数:323
angularjs ui-router路由移除#解决方案
ui-router中增加$locationProvider.html5Mode(true);2.根目录增加.htaccess文件,并增加RewriteEngineOn #Ifanexistingassetordirectoryisrequestedgotoitasitis RewriteCond%{DOCUMENT_ROOT}%{REQUEST_URI}-f[OR] RewriteCond%{DOCUMENT_ROOT}%{REQUEST_URI}-d RewriteRule^-[..
分类:Web程序   时间:2017-09-11 18:17:41    阅读次数:184
React:Element
React Elements 是构成React App的最小单位。React中的组件是由一个或多个Elements构成的。 和DOM不同,React Elements 是纯粹的JS对象。利用React生成的DOM会根据React elements的数据变化实时更新。 1.RE挂载到DOM节点: 只要 ...
分类:其他好文   时间:2017-09-01 17:53:33    阅读次数:133
136条   上一页 1 2 3 4 5 ... 14 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!