rewrite to index.php, which is generally used in pictures, JS, CSS and other external resources. This means that non-PHP code should be excluded. (Here I ruled out the images directory and the robots.txt file, of course index.php should also be excluded)Step Three:Modify application/config.phpFind $config[' index_page '] = "index.php";Modified to: $config [' index_page '] = "";Fourth Step:In the httpd.conf file:AllowOverride NoneSwitchAllowOverride AllNote: If you do a virtual site, do a
This article is the 9th of the fast-track creation series, and if you have not read the previous content, it is recommended that you click on the chapters in the following directory to read the other content before returning to this article. To access this catalogue, please click on: http://anb.io/blog/tag/wordpress-on-azure/1. Website management platform WordPress and cloud computing Platform Azure Introduction (6-minute video)2.1 Creating websites and Web site operations on Azure (13-minute vi
This article is the 5th of the fast-track creation series, and if you have not read the previous content, it is recommended that you click on the chapters in the following directory to read the other content before returning to this article.1. Website management platform WordPress and cloud computing Platform Azure Introduction (6 minutes this article)2.1 Creating websites and Web site operations on Azure (13 minutes)2.2 Domain binding operations and Azure load balancing mechanism (12 minutes)2.
paste two.severadmin--set the administrator's email address;documentroot--file directory, pointing to the directory where the site code points;servername--host name; errorlog--error log;customlog--daily logs.Use only DocumentName and ServerName, others can be deleted.DocumentRoot changed to E:/demo/test01,servername to Test01.com.2. Introduction of httpd-hosts FileOpen a apache->httpd.conf file and Ctrl+f find virtual hosts#Include conf/extra/httpd-vhosts.confRemove the ' # ' before the include
, Wampserver multi-site configuration1. Locate the httpd-vhosts.conf file in the following location to modify itNote: Add localhost modification to prevent the localhost from being opened.Then modify the httpd.conf to delete the comment symbol # Before the include, modifying the effect as follows:Modify the httpd.conf location below to make the site open not only locally.After the modification is complete, restart. I create a new index.php file in f:/demo/test01, left: f:/demo/test02 do similar
found the following configuration:[Serviceports]Apache=80apachessl=443mysql=3306Change to 60000,444 restart Xampp, problem solved
Add multi-port multisite for Apache:Modify File C:\xampp\apache\conf\extra\httpd-vhosts.conf
ServerAdmin Webmaster@dummy-host.localhost
DocumentRoot "E:\ApacheRoot\rivertest"
ServerName localhost
Serveralias localhost
Errorlog "Logs/dummy-host2.localhost-error.log"
Customlog "Logs/dummy-host2.local
Installing Apache1 LoadModule Loading PHP modules2 AddType tells Apache that all the files at the end of PHP are given to PHP module execution3 Phpinidir tell Apache php.ini where the files are4 Configuring Time in php.ini China time zone PRC5 Open a multisite virtual machine in Apapche configuration6 configuration in the virtual machine directoryNamevirtualhost *:80ServerName localhostDocumentRoot "C:/wamp/www"Options indexes//Display file listOrder
There are two ways to configure Multi-host multisite in apache:
The different ports of the same domain name are mapped to different virtual hosts, and different ports are mapped to different sites;
Map the same port to a different domain name, with different domain names mapped to different sites.
We only need to modify the corresponding configuration File.1 , modify the system hosts fileThe path to the Hosts file Is: c:/windows/syst
When you encounter this problem, first confirm that you are in the Web server configuration. PHP is not assigned to FASTCGI server processing:Location ~ . php$ { 127.0. 0.1:9000;}If configured, it may be caused by an incorrect path to the Fastcgi_script_name access script.Especially with subdirectories, for example, for YII frameworks, the path is usually project/webThen if you access/project/index.php in the URL, then the script_name in the Nginx configuration will be the full path: project
]DocumentRoot "C:/develop"ServerName localhostErrorlog "Logs/dummy-host2.localhost-error.log"Customlog "Logs/dummy-host2.localhost-access.log" common
Restart Apache
Visit the site and you can see the content.650) this.width=650; "Src=" http://images.cnitblog.com/blog/11371/201305/ 11180037-59b6ac068f8e44929482d33882d7d3fb.png "style=" border:0px; "/>
Note:When you do the test program, you do not have to establish a port, there are three ways:
nginx service nginx stop Edit nginx config file add the following to the last line in the HTTP {} blockinclude/usr/local/nginx/conf/vhosts_conf/*. conf;vim/usr/local/nginx/conf/nginx.conf start Nginxservice nginx start because it is not outside the network environment, only local access, so modify the client hosts file, Add the following two items 192.168.155.129 websuit_a.com192.168.155.129 websuit_b.com Enter websuit_a.com,websuit_b.com respectively on the client browser to display this Is We
Preface:
1. I only configure multiple sites, because the configuration of multiple sites is to configure a site, I think is included a single site.
2. The core information of a site: Servernane (station naming/server name), DocumentRoot (Site directory)
3. After installing Apache, Htdocx is a default site:
servernane: localhost (127.0.0.1),documentroot: D:\amp\apache\htdocshttpd.conf Open a multisite configuration entry
To avoid errors, open these
Usually the NDR gives us a clear indication of the error.
Today, I am talking about a problem in my daily operations, first of all, my environment is "single-domain multisite" mode, a total of 3 site Exchange, the recipient stream is Exchange Online Protection---A site Cas---a site MBX---The corresponding pickup address database.
According to the NDR, it was found that after the message came down from EOP,
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.