Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can not create virtual host in version 8.8.1

Featured Replies

i don't know why it's not work, this is my httpd-vhosts.conf file

 

<VirtualHost _default_:80>

DocumentRoot D:/UniServer/www

ServerName localhost

ErrorLog "logs/error.log"

CustomLog "logs/access.log" common

</VirtualHost>

 

<VirtualHost _default_:80>

DocumentRoot D:/UniServer/www/tkp

ServerName tkp.com

ErrorLog "logs/error.log"

CustomLog "logs/access.log" common

</VirtualHost>

 

And host file

127.0.0.1 localhost

127.0.0.1 tkp.com

 

But when i run tkp.com it's display page http://localhost/ not display folder tkp in www folder. Pls help me

I assume you have manually edited the file!

First check you have enabled virtual host in Apache’s configuration file:

D:\UniServer\usr\local\apache2\conf\ httpd.conf as shown below:

 

##====== VIRTUAL HOST ===========
#To enable uncomment next line
Include conf/extra/httpd-vhosts.conf

 

Now edit vhost configuration file:

D:\UniServer\usr\local\apache2\conf\extra\ httpd-vhosts.conf

 

Change your vhost section to:

 

<VirtualHost *:80>
DocumentRoot D:/UniServer/www/tkp
ServerName tkp.com
ErrorLog "logs/error.log"
CustomLog "logs/access.log" common
</VirtualHost>

 

The problem is with _default_ should be *

This change will get your Vhost up and running.

 

Although the above is a solution it is not desirable to create a Vhost in the www folder.

Read the docs page D:\UniServer \docs\English\apache_vhosts.html for a detailed description how to create a Vhost in its own dedicated folder.

 

All the best

Ric :)

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.