[Intermediate] XAMPP operating on different ports

Problems with the Windows version of XAMPP, questions, comments, and anything related.

[Intermediate] XAMPP operating on different ports

Postby exoflux » 14. May 2009 17:10

Hello friends,

I have a question regarding XAMPP and different ports.

I am aware of editing the apache configuration file to add:

listen PORT

But I want different files to appear on different ports.

So I can do

http://localhost/ - To get to my default files

and then edit my hosts file so I can have

127.0.0.1:8080

point to wordpress.localhost/

And have different files there?

Anyone know how this is possible?

Thankyou.
exoflux
 
Posts: 2
Joined: 14. May 2009 17:05

Re: [Intermediate] XAMPP operating on different ports

Postby Wiedmann » 14. May 2009 17:21

and then edit my hosts file so I can have
127.0.0.1:8080
point to wordpress.localhost/

So you mean "http://wordpress.localhost:8080/"? Or is "wordpress.localhost/" part of a filesystem path and you want access this path with ""http://localhost:8080/"?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: [Intermediate] XAMPP operating on different ports

Postby exoflux » 15. May 2009 21:52

My apologies, I don't think I explained myself very clearly.

Say for example I have:

http://localhost/

Which takes me to C:\xampp\htdocs\

What I want to do is make

http://development.localhost/

Take me to a different directory.

Does that explain it better?
exoflux
 
Posts: 2
Joined: 14. May 2009 17:05

Re: [Intermediate] XAMPP operating on different ports

Postby Wiedmann » 16. May 2009 07:38

OK, that's a normal namebased virtualhost.
(I guess you can find 1000+ exampled in the forum, or in the Apache manual.)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 70 guests