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.

[apache] VirtualDocumentRoot

Featured Replies

i try to make this

 

<VirtualHost *>

VirtualDocumentRoot "/www/domains/%-2.0.%-1.0/"

</VirtualHost>

 

 

after a hour of coding, i made apache not to crash when started..

 

and still it doesn't work :D

 

it should do:

request:

www.bebbet.nl

result:

/www/domains/bebbet.nl/

 

i want:

request:

1234.bebbet.nl/dir/filename.ext

result:

/www/domains/bebbet.nl/1234/dir/filename.ext

 

who can help me?

 

i activated

LoadModule vhost_alias_module modules/mod_vhost_alias.so

(i installed apache2, then copied the file)

 

help me please

First of, all you have in the VirtualHost section is just the VirtualDocumentRoot? how do you expect it to work? :D

 

Second, why didn't you just use the script you used here before: http://forum.uniformserver.com/index.php?showtopic=25 :D

 

Thrid here is the code:

 

<VirtualHost *>
  ServerAdmin webmaster@bebbet.nl
  DocumentRoot /www/domains/bebbet.nl
  ServerName www.bebbet.nl
  ErrorLog logs/bebbet.nl-error_log
  CustomLog logs/bebbet.nl-access_log common
</VirtualHost>

#------

<VirtualHost *>
  ServerAdmin webmaster@1234.bebbet.nl
  DocumentRoot /www/domains/bebbet.nl/1234
  ServerName 1234.bebbet.nl
  ErrorLog logs/1234.bebbet.nl-error_log
  CustomLog logs/1234.bebbet.nl-access_log common
</VirtualHost>

 

Try that, make sure that the domain names are set to go to your ip on the pc that the server is on or you can use the vhost script here to make the virtual host...

 

Put that code in the httpd.conf file, just that code alone, nothing added and test it... make sure the domain is also pointing to the server or edit your windows host file to redirect all calls to localhost...

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.