Phpwind's Level two domain name setting

Source: Internet
Author: User
From the Phpwind forum to find some information, how to set the blog's level two domain name, now tidy up. If it succeeds, it will bring convenience to everyone. A three-step process:

1. Pan-resolution of DNS servers.

Add a record to point to your Apache server.

such as: * A x.x.x.x

2. In the Apache configuration file httpd.conf, do the following virtual host settings, such as:

<virtualhost *:80>
Documentroot/usr/local/blog
ServerName blog.tttt.net
Serveralias *.tttt.net
<ifmodule mod_rewrite.c>
Rewriteengine on
Rewriterule ^ (. *)/htm/(. *) $ $1.php?$2
Rewriterule ^ (. *)/simple/([a-z0-9/_]+/.html) $ $1/simple/index.php?$2
</IfModule>
Php_admin_value Open_basedir "/usr/local/blog:/var/tmp:/tmp"
</VirtualHost>

3. In the blog's management interface to the level two domain name function open.

Pegasus Original, reprint please indicate the source.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.