linux中的htdocs路径 [英] htdocs path in linux

查看:313
本文介绍了linux中的htdocs路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过ssh在linux服务器上工作,想知道将html和php文件(htdocs文件夹)放在哪里,但是在我看来服务器正在运行lighttpd

I am working on linux server through ssh and want to know where to put html and php files (the htdocs folder) but its seems to me the servers is running lighttpd

我的目录结构看起来像这样.

My directory structure looks something like this.

推荐答案

这完全取决于您的服务器配置,因此,您唯一可靠的信息源应该是lighttpd的配置文件(如果已全局安装),该文件通常应位于/etc文件夹中(例如/etc/lighttpd/lighttpd.conf).

That totally depends on your server configuration so your only reliable source of information should be lighttpd's configuration file which (if installed globally) should normally be within the /etc folder (e.g. /etc/lighttpd/lighttpd.conf).

htdocs文件夹的常用位置是/var/www或/srv中的某个位置.

Popular locations for the htdocs folder are /var/www or somewhere within /srv.

这篇关于linux中的htdocs路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆