Jump to content
The Uniform Server Community

What is wrong with my vhosts settings?


richfieldmall
 Share

Recommended Posts

What have I done wrong with my vhosts setup?

The first site I set up is running well in vhosts. No problems other than occasional crashes (starwarswisdom.com).

 

Then, to develop a second wordpress site (richfieldmall.com), I created this second website on C:\UniServerZ\www.

Then I created a new vhosts location via the controller interface (stop Apache, then go Apache > Apache vhosts > Create... so easy!).

 

Then, I cut and pasted the site over into the new, corresponding directory under C:\UniServerZ\vhosts.

 

Was that the wrong way to do that?

 

My current configuration points traffic for the second site, richfieldmall.com, toward the default Uniform Server test page, under /www, instead of over to /vhosts.

 

 

My settings are as follows:

 

 

.htaccess:

#------------------------------------------------------------------------------
# This file provides server security limiting access to the localhost only.
# Comment next four lines to deactivate. (Allows external access)
#------------------------------------------------------------------------------

#Order Deny,Allow
Allow from all
#Allow from 127.0.0.1
#Allow from ::1

#------------------------------------------------------------------------------
# To allow execution of cgi scripts in this directory uncomment next two lines.
#------------------------------------------------------------------------------.

AddHandler cgi-script .bat .exe .pl .cgi
Options +ExecCGI +FollowSymLinks


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

C:\UniServerZ\core\apache2\conf\extra:

<VirtualHost _default_:80>
  DocumentRoot C:/UniServerZ/www
  ServerName localhost
  ErrorLog "logs/error.log"
  CustomLog "logs/access.log" common
</VirtualHost>

<VirtualHost *:80>
 ServerAdmin webmaster@starwarswisdom.com
 DocumentRoot C:/UniServerZ/vhosts/starwarswisdom
 ServerName starwarswisdom.com
 ServerAlias www.starwarswisdom.com *.starwarswisdom.com
 ErrorLog logs/starwarswisdom.com-error.log
 CustomLog logs/starwarswisdom.com-access.log common
 <Directory "C:\UniServerZ\vhosts\starwarswisdom">
   Options Indexes Includes
   AllowOverride All  
   Require all granted
 </Directory>
</VirtualHost>

<VirtualHost *:${AP_PORT}>
 ServerAdmin webmaster@richfieldmall.com
 DocumentRoot ${US_ROOTF}/vhosts/richfieldmall
 ServerName richfieldmall.com
 ServerAlias www.richfieldmall.com *.richfieldmall.com
 ErrorLog logs/richfieldmall.com-error.log
 CustomLog logs/richfieldmall.com-access.log common
 <Directory "${HOME}\vhosts\richfieldmall">
   Options Indexes Includes
   AllowOverride All  
   Require all granted
 </Directory>
</VirtualHost>

If any other information is needed, please let me know. Advice, suggestions, links -- any info is welcome!

 

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 years later...

I'm having the same problems with the Aug2019 release.

 

It worries me that there has been almost zero discussion about vhosts not working (worked fine in the last version) and not in this new release.

 

I guess it's time to move on.

Link to comment
Share on other sites

  • 5 months later...

It won't be US at fault it'll be apache if anything.. so no point moaning about the uniform server project..

What i'd do is delete each line of the virtual host config until you find the one causing the problem. At that point you can then diagnose whats going wrong.

I've had similar faults to yours - including apache not starting cos it can't access log files... total pain in the grass but you just have to keep at it. I had to delete 15 virtual host configs from my http.conf until i found the fault - good job CTRL Z works well in notepad++ lol

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