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.

virtual host not working

Featured Replies

Hello,

 

virtual host is not working. I get always content starting from /www/

 

host file is also ok.

 

What I see is content always h t t p ://site2 === h t t p://site1--------------- Well it was late !!!! RIC

 

any ideas, it is windows xp home italian. Can I do some debugging to see what is wrong?

Admin Virtual Host is working i.e. setting up everything, only apache strikes.

:)

 

NameVirtualHost *

Listen is set to port 80

Userdir is /www/

##########VIRTUAL HOST SETUP##########

# site1

<VirtualHost *>

ServerName site1.dev

DocumentRoot /www/

</VirtualHost>

 

# site1

<VirtualHost *>

ServerName site2

DocumentRoot /www/site2

</VirtualHost>

 

 

thanks

tim

It looks as if you have not set the hosts file:

 

Open the file:hosts

 

Located: C:\WINDOWS\system32\drivers\etc\

 

add these lines

 

 

127.0.0.1 site1.dev

127.0.0.1 site2

 

Check out this page for more details

 

http://center.uniformserver.com/virtual_ho...ual_host_1.html

 

 

All the best :)

  • Author

It looks as if you have not set the hosts file:

 

Open the file:hosts

 

Located: C:\WINDOWS\system32\drivers\etc\

 

add these lines

127.0.0.1 site1.dev

127.0.0.1 site2

 

Check out this page for more details

 

http://center.uniformserver.com/virtual_ho...ual_host_1.html

All the best :)

 

 

Stays above "host file is also ok" meaning

 

127.0.0.1 site1.dev

127.0.0.1 site2

 

are also set.

 

 

That is my problem everything seems beeing OK, but not working.

 

tim

  • Author

tim, try changing

DocumentRoot /www/site2

to

DocumentRoot /www/site2/

 

 

tried that too, with the same result.

 

I like uniformserver but without virtual hosting, I'm going to try something else like p.e. wampserver.

Thanks anyway. :)

 

tim

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.