opening, find
#LoadModule rewrite_module "Modules/mod_rewrite.so"
Get rid of the #.
Then find the virtual host configuration
Add to the virtual host
Rewriteengine on
Rewriterule ^/soft/([0-9]+). html$/soft.php?id=$1
Explain
WWW. Maize. com/soft/1234.html
Rewritten as
WWW. Maize. com/soft.php?id=1234
Here the ID is can be changed you give it 1 is pass 1
Rewriterule ^/([0-9]+). html$/soft.php?id=$1
Explain
WWW. Maize. com/1234.html
Rewritten as
WWW. Maize. com/soft.php?id=1234
Rewriterule ^/([0-9
row overlay, eventually only the specified IP access is deniedThe difference between indexes and noneThe final configuration is this,Step Three:Native DNS parsing:Open the DNS file for this computer--run-->drivers-->etc-->hosts OpenAdd a domain name resolution that you define yourself.Format: IP space Custom domain nameMethod 1:127.0.0.1 www.sina.com//Only own accessMethod 2: Native NIC IP address www.sina.com//external, others can accessFinally restart ApacheWhen you enter www.daima.com, you s
Apache maven is a software project management tool that, based on the concept of project object Model,pom, is used by MAVEN to manage project dependencies, compilation, documentation, and more.When you use MAVEN to manage a project, the jar packages that the project relies on are not contained within the project, but are centrally placed in the. M2 folder in the user directory.1.Maven Installation1.1 Download
We may need to use FTP in the project to upload files, download, get server directory information and other related operations, we can use Apache ftpclient to carry out related operations, the following public methods related to share with you, each method before the detailed comments to explain, However, in the FTP test, we need to configure an FTP server, file upload and
Access the resources in Apache to download their files directly
The access PHP file will prompt to download its files, for what reason? Http.conf about PHP is configured as follows:
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html
AddType application/x-httpd-php. htm
LoadModule php5_module "D:/php/php5apache2_2.dll"
Phpinidir "D:/php
When you access resources in apache and directly download their files, accessing the php file will prompt you to download their files. why? The configuration of php in http. conf is as follows:
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html
AddType application/x-httpd-php. htm
LoadModule php5_module "D:/php/php5apache2_2.dll"
Based on the Apache FTP implementation of the File upload download tool, upload files need to consider the following issues:
(1) Whether there is a directory for the FTP server, if the directory does not exist, you need to create a directory.
(2), to determine whether the upload file already exists, if there is a need to delete overwrite upload or continue to pass.
The following example code (note: The cont
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.