In Apache conf's Servername setting, I have to specify a directory.

For example Servername world wide I trid and it doesn't work, though.

I've got a primary site (world wide which documentroot is /var/world wide web/html/primary and my sub site URL is world wide and it is documentroot is /var/world wide web/html/sub.


world wide isn't a valid value for ServerName. Only hostname and port could be incorporated within the value for ServerName.

What you need to define is known as an Alias. You are able to find out about Alias here.

For instance, inside your configuration for world wide, you can include this line:

Alias /sub /var/world wide web/html/sub