Eric Caspari
Eric Caspari

Reputation: 33

HTTP Request to a VirtualHost

Here's the thing, I have my server configured with a virtualhost mydomain.com but the DNS are not pointing yet to this server's IP address.

In other words, I have:

I need to connect to server B pretending I'm connecting to mydomain.com.

Is it possible to test that with Paw?

Upvotes: 1

Views: 873

Answers (2)

Eric Caspari
Eric Caspari

Reputation: 33

It took me a while to figure it out, so here's a screenshot that may explain the solution better.

I'm trying to access the virtualhost mydomain.com on the server with IP address 0.0.0.0.

Paw VirtualHost

Upvotes: 2

Micha Mazaheri
Micha Mazaheri

Reputation: 3481

What you're trying to do is probably DNS spoofing, you need to connect to your "server B"'s IP address but with an HTTP header Host: mydomain.com.

See DNS Spoofing with Paw.

Upvotes: 1

Related Questions