Configure virtual host with Wamp on winserver2008, Access _php tutorial with extranet domain name

Source: Internet
Author: User
winserver2008 all kinds of toss Ah, on the winserver configuration Wamp 2.2e Various can not run, reported Crashapp error,

Engaged for a long time did not solve, there is no big God guidance, and then under a Wamp 2a can be installed, but his PHP version is

5.2, and so on to upgrade the PHP version, at least a 5.3 ah!

Specific installation failure and upgrade PHP version of the issue in the next article, write about the Apache and server configuration issues.

First: The domain name is resolved to the server's external network IP, as to how to parse. Check it yourself, I will not say more!

Second: Find the # include conf/extra/httpd-vhosts.conf to remove the previous # number

Results restart Apache not up Ah, why?

I will delete the contents of the httpd-vhosts.conf all the restart is not a problem, it is suspected that httpd-vhosts.conf this file something wrong.

Specifically not very clear, and then I will bring my own 2

  
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "C:/apache2/docs/dummy-host.example.com"
ServerName dummy-host.example.com
Serveralias www.dummy-host.example.com
Errorlog "Logs/dummy-host.example.com-error.log"
Customlog "Logs/dummy-host.example.com-access.log" common
 

All this stuff is erased and checked.

  
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "e:/www/yl/"
ServerName www.1y.com.cn
Errorlog "Logs/dummy-host2.example.com-error.log"
Customlog "Logs/dummy-host2.example.com-access.log" common

Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all

  

Attention

The following section is used to configure the domain name and path

ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "e:/www/yl/"
ServerName www.1y.com.cn
Errorlog "Logs/dummy-host2.example.com-error.log"
Customlog "Logs/dummy-host2.example.com-access.log" common

The following paragraph is to give permissions to the folder of the Web site, if you do not add this access will appear 400 error

  
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all

It's no problem to re-wamp after saving.

Of course, don't forget to change the host file to point to

127.0.0.1 your domain

You can then access the Web site by accessing the configured domain name on the server.

So how does the extranet access it?

Outside the domain name if the resolution can be accessed, of course, I began to visit the prompt connection is not!

Thought certainly is the problem of the external network IP, closed the win2008 with the firewall, and then access from the outside can be accessed,

That must be the firewall has restricted the 80 port entry rules.

Then open the firewall-"advanced rules-" new rule-"a name, and then select the port,

Next-"Enter 80, then next, then the name of something, create a complete open firewall,

Again from the outside access, OK!

Well, the technical level of this article is approximately equal to 0, but sometimes it can be used for a while, hereby mark.

http://www.bkjia.com/PHPjc/440308.html www.bkjia.com true http://www.bkjia.com/PHPjc/440308.html techarticle winserver2008 All kinds of toss Ah, in Winserver configuration Wamp 2.2e Various can not run, reported Crashapp error, did not solve for a long time, there is no big God guidance, and then under a WAM ...

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