Jump to content

Apache virtual-localhost problem


SK_pt
 Share

Recommended Posts

Hi,

 

Im using Apache2 in my MdK 92, and im a newbie coming from IIS6/W2K.NET

 

I want a testing server with virtual hosting, so the idea is to have

http://localhost/website1

http://localhost/website2

http://localhost/website3

 

How can i achieve this?

I can make directories in the host root path, but when i have in my html page a call to an image src="/image.gif" i want it to go to http://localhost/website1/image.gif, and not to http://localhost/image.gif as it does with me only creating normal folders inside the general root path.

 

Any ideas? How i can achieve this simple 3 next buttons in IIS6 at W2K?

 

Creating REAL virtual folders in Apache, i don't have domain available i only have the machine name and have to work out a development enviroment from where i can just copy the PHP and put it in production, and givin all the same base as the real server.

 

I can do all my only problem is the virtual directories.

 

thanks,

SK

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...