Where is the web server root directory in WAMP?

后端 未结 7 1983
萌比男神i
萌比男神i 2020-12-05 07:39

Also is the web server root directory the place where you put your site files and later acces them with localhost/file_name in the browser?

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 07:59

    Everything suggested by user "mins" is correct, and excellent information.

    WAMP 2.5 provides a default Server Configuration display when you enter localhost into your browser. This maps to c:\wamp\www, as described in previous posts. Creating subdirectories under www will cause Projects to appear on this display. A click and you're in your project.

    I have various projects under different directory structures, sometimes on shared drives which makes this centralized location of files inconvenient. Luckily, there is a second feature of WAMP 2.5, an Alias, which makes specifying the location of one (or more) disparate web directories quite easy. No editing of configuration files. Using the WAMP menu, choose Apache > Alias directories > Add an Alias.

    WAMP has evolved nicely to provide support for a variety of developer preferences.

提交回复
热议问题