bro1o1
bro1o1

Reputation: 37

WAMPSERVER Offline

I am having trouble connecting WAMPSERVER. I am using a network which requires proxy and port to work, so basically I'm having trouble when ever I execute my html project it shows me an error

Not Found The requested URL /www/index.html was not found on this server. Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80

I think I have to set proxy setting for my WAMPSERVER. Can anyone help me with that!

Upvotes: 2

Views: 3455

Answers (1)

GolezTrol
GolezTrol

Reputation: 116110

The installation of WAMP is (usually) in C:\Wamp. But the document root is in C:\Wamp\www.

The document root is the starting folder of your url. So the url http://localhost/foo/bar.html loads the file in C:\Wamp\www\foo\bar.html.

So in conclusion, your url is wrong. It should not be localhost/www/index.html, but localhost/index.html (without www).

In Netbeans, you can run your project, which basically means that it opens the main page in a browser. If the url you get from Netbeans is wrong, you'll have to change your project settings.

The issue starts when you create a new project in Netbeans. When you point it to C:\Wamp\www, netbeans assumes for some reason that www should be part of the url. You can change it right away in this project wizard:

enter image description here

If you forgot to do this, you can do it later. Open the project properties windows (Right-click -> Properties), and choose the tab 'Run configuration'. There you can change the setting:

enter image description here

Upvotes: 2

Related Questions