How to Disable Directory Browsing in WordPress
發現,預設的apache 引數是允許瀏覽目錄的,修改方法是到 /etc/apache2/sites-available/ 目錄下,把自己的網站增加下面紅字部份的引數:
<Directory /var/www/html/>
Options -Indexes
AllowOverride All
</Directory>
修改之後的畫面:
相關推薦
How to Disable Directory Browsing in WordPress
發現,預設的apache 引數是允許瀏覽目錄的,修改方法是到 /etc/apache2/sites-available/ 目錄下,把自己的網站增加下面紅字部份的引數: <Directory /var/www/html/> Options -Indexes AllowOverride All &l
How to setup Assigned Access in Windows 10 (Kiosk Mode) 設置分配的訪問權限(Kiosk模式)
win tar mode ctr assigned all oos rsquo eve Let’s say you’re building some sort of ingenious mechanical contraption to be dis
How to Catch Ctrl-C in Shell Script
con func sigint -c for r script init form target ref: https://stackpointer.io/script/how-to-catch-ctrl-c-in-shell-script/248/ #!/
在pycharm中調試ryu應用(How to debug Ryu applications in Pycharm or other IDEs)
source deb python程序 mail log span cmd end pos 想要在IDE中使用IDE的調試功能來調試Ryu應用,可以這樣做: 新建一個python程序: 1 #!/usr/bin/env python 2 # -*- coding
How To Enable EPEL Repository in RHEL/CentOS 7/6/5?
1.7 like ons 64 bit pac PE ise nbsp ike What is EPEL EPEL (Extra Packages for Enterprise Linux) is open source and free community based r
How to execute sudo command in remote host via SSH
sed exec rac base should -s mach back sage Question: I have an interactive shell script, that at one place needs to ssh to another machin
How to setup kernel debug in Virtual Machine and redirect usermode debug sessions
轉載自:http://blog.sina.com.cn/s/blog_65e729050100m7on.html 在Windows高效排錯中提到了除錯重定向。書中沒有詳細介紹。今天恰好有機會在虛擬機器上從頭開始配置了一下,所以把詳細的內容記錄在這裡,算是補充。 文章本身使用英文寫的。由於書中是用
How to disable Microsoft Compatibility Telemetry
Issue: How to disable Microsoft Compatibility Telemetry (CompatTelRunner.exe)? Option : Disable Microsoft Compatibility Telemetry in Wind
How to remove ROM cfg in MAME
/usr/share/games/mame/roms/ /usr/local/share/games/mame/roms/ sudo rm /usr/local/share/games/mame/roms/* sudo cp -r /home/cuthead/Downloads/* /usr/local
How to get current timestamps in Java
How to get current timestamps in Java Timestamp timestamp = new Timestamp(System.currentTimeMillis());//2016-11-16 06:43:19.77 Here are two Java example
11.克服溝通障礙(How to break the bricks in conversation.)
1.What's this in English? 2.Can you speak slowly,I can't follow you.你能說慢點嗎?我跟不上你。 3.Pardon please.(請再說一次) 4.Sorry,I can't qu
How To Handle Click Events In Android RecyclerViews
According to the documentation, a RecyclerView is a flexible view for providing a limited window into a large data set. If you have done any android dev
How to Generate SQL Trace In OAF
1. Profile 'FND: Diagnostics' = Yes at user level.This will make 'Diagnostics' menu display.2. Login to Personal Home Page as that user an
How To Use Retrofit Library In Your Android App
Retrofit library is a Type-safe REST client for android and Java, courtesy of Square Inc. Most modern android apps make HTTP requests to some remote s
How To Create Custom Dialog In Android With Validation
Let’s learn how to create custom dialog in android and while we are at it, let us also do simple validation of the data the user entered before clicking
How to make a GroupBox in website development by VS.NET2005
Sometimes we need to make a GroupBox on my webpage.Using the HTML object(fieldset ,legend) we can make it out! source: <fieldset style
How to split a string in C++
Java has String.split(), Python has string.split(), Perl has split. There is no simple string-splitting method in C++, but there are plenty of way
How to get browser information in JSP?
The following jsp will output your ip address and user-agent: Your user-agent is: <%=request.getHeader("user-agent")%><br/> Your IP address i
[iOS] How to limit character input in UIAlertView UITextField
When you initialize the alert view: [[alertView textFieldAtIndex:0] setDelegate:self]; Now, self here is your view controller. So you need to add <UITe
How to Easily Create a Multilingual WordPress Site
透過 wordpress 寫多國語言的網站還滿簡單的耶。 裝好外掛後,要先新增語言(Langages)。 由於 zh_TW, zh_CN 預設用的程式碼都是 zh, 不能2個都用zh, 所以我改用 tw 和 cn, 理論上用 chs / cht 也不錯。 翻譯一些字串: 翻譯文章: 編輯文