Page 1 of 1

[Intermediate] XAMPP operating on different ports

PostPosted: 14. May 2009 17:10
by exoflux
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.

Re: [Intermediate] XAMPP operating on different ports

PostPosted: 14. May 2009 17:21
by Wiedmann
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/"?

Re: [Intermediate] XAMPP operating on different ports

PostPosted: 15. May 2009 21:52
by exoflux
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?

Re: [Intermediate] XAMPP operating on different ports

PostPosted: 16. May 2009 07:38
by Wiedmann
OK, that's a normal namebased virtualhost.
(I guess you can find 1000+ exampled in the forum, or in the Apache manual.)