By default, you need to create the directory public_Html in your user's home directory, then put all your web files in this directory, type in http: // servername / ~ username, but please pay attention to the following Point: 1. Login as root, modify the user home directory permissions (# chmod 705 / home / username), so that other people have the right to enter the directory browsing. 2. Login with your own username, create a public_html directory, to ensure that the ...
By default, you need to create the directory public_Html in your user's home directory, then put all your web files in this directory, type in http: // servername / ~ username, but please pay attention to the following Point: 1. Login as root, modify the user home directory permissions (# chmod 705 / home / username), so that other people have the right to enter the directory browsing. 2. Login with your own username, create a public_html directory, to ensure that the ...
Because the blog is used as a blog www.jzread.com domain name, so want to achieve all jzread.com redirect (jump) to www.jzread.com. At the same time in accordance with the recommendations of Google, the use of server-side 301 redirect, in order to ensure that users and search engines to the correct page the best way. 301 status code indicates that a web page has been permanently migrated to a new location. The following will find out about apache 301 permanent redirect 2 methods, you need to have access to the server's .htaccess ...
The .htaccess file is one of the most commonly used configuration files for Apache servers and is responsible for web page configuration in related directories. By htaccess file, can help us to achieve: page 301 redirect, custom 404 error page, change the file extension, allow / block specific users or directory access, directory banned, configure the index entry and other functions. In addition, .htaccess manual editing method is to use an advanced text editor such as UE or notepad2. If you do not facilitate the download or manual preparation of the file error, but also very ...
The .htaccess file allows us to modify some server settings for a particular directory and its subdirectories. Although this type of configuration is best handled in the section of the server's own configuration file, sometimes we do not have permission to access this configuration file at all, especially when We are on a shared hosting host, and most shared hosting providers only allow us to change server behavior in .htaccess. .htaccess file is a simple text file, note the "." before the file name is very important, we can use your favorite text editor ...
The easiest way is from Apache (if you are using Apache as a server). You can set both in the httpd.conf configuration file and in .htaccess. Described as follows: 1. In the configuration file settings: Open the httpd.conf editor, the following block is edited as follows: [Code] httpd.conf <Directory "/ var / www / html"> ...
ServerRoot "/ usr / local" ServerRoot is used to specify the directory where the daemon httpd is running. After the httpd starts, the current directory of the process is automatically changed to this directory. Therefore, if the file or directory specified in the settings file is a relative path, The path is under the path defined by this ServerRotot. ScoreBoardFile /var/run/httpd.scoreboard h ...
Open Apache's httpd.conf configuration file. Two will #LoadModule rewrite_module modules / mod_rewrite in front of the three removed in the httpd.conf Add: <IfModule mod_rewrite.c> RewriteEngine On #Rew ...
apache bind the same virtual directory multiple instances of different domain names To bind multiple domains to achieve the same directory to use the serveralias method, below we take www.jzread.com as an example, namevirtualhost *: 80 <virtualhost *: 80> servername web-demo ...
Directory 301 code is as follows RewriteCond% {REQUEST_URI} ^ / down / mb / RewriteRule ^ / down / mb /(.*) http://mb.jzread.com/$1 [R = permanent, L] This will put the current domain name As long as it contains down / mb / this directory automatically jump to 301 to the mb.jzread.com directory domain 301 code is as follows Rewrite ...
I have always been a headache 301 orientation, Linux is not used to their own, only some simple commands, or Win, after all, more popular, although later with the technical development will certainly use linux, but now is the first Win thorough research it . Today for everyone to explain is that the win host without iis, the use of pseudo-static rules to achieve the orientation of 301, this problem distressed for a long time, because if 1,2 stations are ok, if you do station group, iis one re-create the site and then 301 is too much trouble, I encountered such a problem on the VPS, as ...
IIS to achieve pseudo-static do not need Rewrite components Now iis site can customize the 404 error page, open the local IIS site, view the properties - custom error, find 404 error, double-click to modify the message type URL, Url set as root Directory, the absolute path to the file. For example, set the site more directory 404.asp set the url to / 404.asp, mainly to modify our changes 404.asp as follows, such as the home page http: //www.******* *** ...
If the same code is right, in other people's website can play flv video on your site is a black screen or space that can not find flv this file, then you have to consider is not their windows server IIS Configured to support flv file extension. The following method everyone according to Qiu Songsong said steps to operate. Log in to your server to open IIS, and then click: "Site" -> right click on the "Properties" -> select "HTTP Header" -> click "MIME type" -> ...
Apache basic settings and garbled solution. Apache basic settings 1, Apache's core configuration file name is "httpd.conf", which is stored in the path "X: Apache2conf" directory. Open it with Notepad, modify it and then save it to achieve the purpose of configuring Apache server. 2, because the configuration file "httpd.conf" determines the entire Apahce server ...
Many of my friends encountered many problems in the IIS6 rack site, and some of these problems encountered in the past inside IIS5, some new, do a lot of tests, combined with previous troubleshooting experience to make This summary, I hope to help you. Problem 1: Parent Path Not Enabled Symptoms Example: Server.MapPath () Error 'ASP 0175: 80004005' Path characters not allowed / 0709 / dqyllhsub / news / OpenDatabase ....
1) Do not download www.php.net Installed above the Windows Installer can not use MYSQL Based do not know where the problem lies. Will not fix forever, that's right. EXTention can never be loaded. So php_mysql.dll never get into memory. MYSQL_CONNET () function can never be found. Not always set well. You do not know what he did! So many of the procedures before the PDO appear can not be used. 2) So be sure to manually. Manual is king. Because we know we ...
The .htaccess file is a very powerful configuration file for the Apache Web server. With this file, Apache has a bunch of parameters that let you configure almost any functionality you want. The .htaccess config file sticks to a Unix culture - using an ASCII plain text file to configure your site's access policy. This article includes 16 very useful tips. Also, because .htaccess is ...
apache pseudo-static configuration and iis pseudo-static configuration contrast analysis / * In web development, often encounter php tutorials, asp tutorial files pseudo-static into htm or other files, let's talk about apache pseudo-static rules And iis pseudo-static rules of some different parts of the. Let's take a look at apache pseudo-static configuration method. Example, we want to pl.php tutorial? Id = 1 page.php? Id = 1 pseudo-static into html page d-1.html v-1 ....
Add another port instance to the web server [apache + php tutorial] / * Find your apache installation directory, find the httpd.conf file, search # Listen this sentence, add the following listen 800 listen 801 listen 802 Here is the test, You need to increase the different listening port, the apache web port opened Well, I ...
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.