Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have build a site working on my localhost using xampp on windows7. Now, I my colleagues want to access and use that site in our small office.

I tried to access the site using IP address of my own system. but some urls are redirecting to localhost... and there is no localhost at other computers in my office.

the problem is the site is built with CodeIgniter framework so it containes a constant site_url which it's value is http://localhost/site.

I know that I need a server (or domain controller) and I have to put my site on that server so all other computers would access to it.

I can't figure out how to implement what is need without a computer used as server in our office.

Can I use a virtual machine?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Just change that site_url from "http://localhost/site" to "http://your.ip.add.ress/site" (use your ip address). It should work then (if this is the only place where the url is hardcoded in your app).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.