Finally abandoned Drupal put into the WordPress camp, haha. WP is really better than DP, here to save 500 words ...
In the past has been tangled how to migrate, after the migration of old data how to do, there is no smoothing scheme, want to break the head have no idea, several times moved the idea of migration, several times and was wiped out. DP notifications can be upgraded from 7.22 to 7.23 a few days ago, but the upgrade is unsuccessful in any event, and it is expected that the pain is determined to migrate.
I am now using the NGINX+PHP-FPM mode in the background, with the help of colleagues after a few attempts, finally fix the smooth upgrade solution:
1. Enable the new station to provide services directly to the outside
2. Rename the original virtual host, such as to change the imysql.com to the current dp.imysql.com:8080 (because my server_name uses a generic domain name, so it needs to use a non-80 port)
3. Forward all requests to the old station to the dp.imysql.com:8080
In this way, we can provide the new station services, the original search engine included in the old link can also be opened normally. In Nginx, you can refer to the following configuration:
#
#/sites/.*,/files/.* .../image_captcha/.* is a Drupal-related request directory, does not appear in WordPress, assured forwarding
#. *\.html is my previous use of Drupal, URL path rules, to. html end, after enabling wordpress, my URL path end changed to. shtml, so you can also safely forward
# After the above rules have been set, the request will be forwarded directly to port 8080 via proxy_pass, i.e. dp.imysql.com:8080
#
Location ~ ^/(sites\/.*|file\/.*|scripts\/.*|admin\/.*|node\/.*|user\/.*|image_captcha\/.*|. *\.html) {
Proxy_set_header Host dp.imysql.com:8080;
Proxy_set_header X-real-ip $remote _addr;
Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;
Proxy_pass Http://127.0.0.1:8080$request_uri;
}
Nginx I am not very familiar with, so the above regular expression looks compared to the earth, there is nothing better trouble everybody tell, thank you.
--------------------------------------Split Line--------------------------------------
Hall of Understanding ( http://zhishuedu.com Training is a professional quality training brand jointly launched by senior MySQL expert Ye Jinlong and Wu Bingxi, which mainly includes MySQL DBA combat optimization and Python Operation Development Course, which is the most conscientious and quality training course in the industry.
This article is from the "Lao Ye teahouse" blog, please be sure to keep this source http://imysql.blog.51cto.com/1540006/1879802
New station first article, migrating Drupal to WordPress