Wamp 2.5 Modify the default WWW path and resolve 403 errors after installation

Source: Internet
Author: User
Tags 403 forbidden error

This time began to toss the next laravel, first installed Wamp 2.5, I like to set the path to F:\Workspace, so modified the wamp default WWW path, detailed methods please refer to the blog (from: http://blog.csdn.net/ wxlhlh001/article/details/8235224)

Many friends have installed WAMP, after installation, the WAMP default server folder address is C:\WAMP\www (following the default installed address).


At this point, we click on "www directory address" will open C:\WAMP\www this directory.

Image: P001.jpg



If we want to change the address of the Web server to a different disk, for example, how do I fix the D:\MyWEB?


The steps are as follows:


1, open the Apache configuration file, httpd.conf find the following code to modify our new Web server address.

Image: P002.jpg



2, open the Wamp installation directory, find Wampmanager.ini and wampmanager.tpl two files, open with Notepad.

Image: P003.jpg



3. Modify the code in the Wampmanager.ini to change it to our new Web server address.

Image: P004.jpg



4. Modify the code in the WAMPMANAGER.TPL to change it to our new Web server address.

Image: P005.jpg



5, Exit Wamp, and then start from the new wamp then you can!!

www directory is modified, but when the visit to localhost appeared 403 Forbidden error, it was also found under the revised apache2.4.9 403 problem method, the detailed reference is as follows (turn from: http://blog.163.com/[email protected]/blog/static/124078678201411214849498/)

Using Wamp to build an Android background, through a native browser access to success, but the phone access failed, return error code 403. Online Search Some of the answers, are not clear, some are still more chaotic. Later on the comprehensive online, found only change one place can.

The steps are as follows: 1. Open Apache httpd.conf file 2. Locate the following directory to change the configuration of the red background to a green background.

<directory "D:/wamp/www/">
#
# Possible values for the Options directive is "None", "all",
# or any combination of:
# Indexes includes followsymlinks symlinksifownermatch execcgi multiviews
#
# Note that "MultiViews" must is named *explicitly*---"Options all"
# doesn ' t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives is placed in. htaccess files.
# It can be ' all ', ' None ', or any combination of the keywords:
# Allowoverrid E FileInfo authconfig Limit
#
allowoverride all

#
# Controls who can get stuff from the this server.
#

# onlineoffline Tag-don ' t remove
# require local
Span class= "PLN" > allow from all
Require all granted
</DIRECTORY>

Wamp 2.5 After installation modifies the default www path and resolves the 403 error

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.