Jump to content
The Uniform Server Community

Virtual hosts won't work


Pickle
 Share

Recommended Posts

Greetings.

 

I had a working Apache2/PHP 5.3.0/MySQL setup on my desktop which I use for testing of websites I produce. Because PHP was aborting locally when handling running longer strings through preg_replace() when using a recursive pattern, but wasn't remotely on the production Linux box, I thought I'd try upgrading my local setup.

 

After looking around for another WAMP, I decided to try Uniform Server, and am impressed with its features. However, I can't seem to get my virtual hosts to work again. They all showed up under Admin Virtual Host, but each one ends up being but an alias for the default site http://localhost/.

 

I tried, then, adding an entry via Admin Virtual Host, and it got added to both hosts and httpd.conf. It shows up in the list of virtual hosts. But it still is only an alias for localhost.

 

That entry corresponds to a folder in Uniserve/www/. I've tried it with both a .com at the end of the folder name and without. I've tried it with all my other virtual host entries out of httpd.conf. I've tried it after checking the Apache configuration syntax. No go.

 

What could possibly be wrong?

 

The Uniform Server home page is loading, so Apache must be reading the correct httpd.conf file.

Link to comment
Share on other sites

Greetings.

 

I had a working Apache2/PHP 5.3.0/MySQL setup on my desktop which I use for testing of websites I produce. Because PHP was aborting locally when handling running longer strings through preg_replace() when using a recursive pattern, but wasn't remotely on the production Linux box, I thought I'd try upgrading my local setup.

 

After looking around for another WAMP, I decided to try Uniform Server, and am impressed with its features. However, I can't seem to get my virtual hosts to work again. They all showed up under Admin Virtual Host, but each one ends up being but an alias for the default site http://localhost/.

 

I tried, then, adding an entry via Admin Virtual Host, and it got added to both hosts and httpd.conf. It shows up in the list of virtual hosts. But it still is only an alias for localhost.

 

That entry corresponds to a folder in Uniserve/www/. I've tried it with both a .com at the end of the folder name and without. I've tried it with all my other virtual host entries out of httpd.conf. I've tried it after checking the Apache configuration syntax. No go.

 

What could possibly be wrong?

 

The Uniform Server home page is loading, so Apache must be reading the correct httpd.conf file.

 

I got it working. Suddenly, it seems, it started going to the right directory for the entry I added. My old entries then started producing errors Forbidden Access errors and another error, which went away when I added the proper directory-specific Options in the httpd.conf file.

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.

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...