的.htaccess:其中位于不用时,WWW的基础目录 [英] .htaccess: where is located when not in www base dir

查看:193
本文介绍了的.htaccess:其中位于不用时,WWW的基础目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可能需要修改我们的.htaccess文件。问题是我无法找到它。我们有几个子域的旁边对方的虚拟主机目录中,各子域都有一个关联的.htpasswd文件。如何才能找到其中的.htaccess文件。

I may need to modify our .htaccess file. Problem is I can't find it. We have several subdomains along side each other in the vhosts directory, and each subdomain has an associated .htpasswd file. How can find where the .htaccess file is.

很显然,我没有设置此,我当然不知道作为一个UNIX管理专家。

Obviously, I didn't set this up and I'm certainly not known as an unix admin expert.

推荐答案

(点)文件默认是隐藏在Unix / Linux系统。最有可能的,如果你知道他们是的.htaccess 文件,那么他们很可能是在为网站的根文件夹。

. (dot) files are hidden by default on Unix/Linux systems. Most likely, if you know they are .htaccess files, then they are probably in the root folder for the website.

如果您使用的是命令行(终端)接入,那么他们将只显示,如果你使用的:

If you are using a command line (terminal) to access, then they will only show up if you use:

ls -a

如果您使用的是图形用户界面的应用程序,寻找一个设置为显示隐藏文件或类似的东西。

If you are using a GUI application, look for a setting to "show hidden files" or something similar.

如果您仍然有没有运气,而你是在一个终端,就可以执行这些命令来搜索整个系统(可能需要一些时间):

If you still have no luck, and you are on a terminal, you can execute these commands to search the whole system (may take some time):

cd /
find . -name ".htaccess"

这会列出它的名字找到的任何文件。

This will list out any files it finds with that name.

这篇关于的.htaccess:其中位于不用时,WWW的基础目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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