Search the n change tutorial, or not configured Apache virtual directory pseudo-static, please help to see where the problem

Source: Internet
Author: User
According to the online search tutorial to configure the Apache virtual directory pseudo-static, the results can not be achieved, please help to find the reasons, thank you very much!

First step: Turn on pseudo-static

#loadmodule rewrite_module modules/mod_rewrite.so in httpd.conf, uncomment

Replace all allowoverride none with allowoverride all



Step Two: Open the virtual directory

Httpd.conf # include conf/extra/httpd-vhosts.conf, uncomment

and configure the virtual directory in httpd-vhosts.conf, the contents of the virtual directory are as follows


 
  
   
      ServerAdmin admin@system    documentroot "F:/phpsite/myweb"    ServerName 127.0.0.2
  
   
    
           Options Indexes FollowSymLinks        allowoverride all        Order allow,deny    
  
   
 
  



Step three: Configure the. htaccess rewrite rules

The. htaccess file contains the following


 
  
   
          Rewriteengine on        rewriterule ^/conf_ ([0-9]*). html/conf.php?arg=$1
 
  




Fourth: Set conf.php file contents and restart Apache




Check the information for a night or not done, good catch!!!


Reply to discussion (solution)

Configuring virtual Machines

DocumentRoot "F:/phpsite/myweb"
ServerName 127.0.0.1:8009
Errorlog "Logs/web.log"


Apache supports pseudo-static

Options Indexes followsymlinks multiviews execcgi
AllowOverride All
Order Allow,deny
Allow from all

Rewriterule conf_ ([0-9]*). HTML curl.php?arg=$1

That's what you try.

Thank you very much for two bit! Wonder. What I wrote yesterday was no good. It's normal today, it's too doer!

  • 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.