It proposes 3 solutions:
a) enabling apache automatic virtual hosts
b) allow access through webmin as proxy
c) subdomain
solution c) is not possible for me cause DNS are hosted at dnsmadeeasy.com, so difficult to create a subdomain each time
solution b) not sure I understand exactly where to enable what? could you give detailed instructions please. Plus, will it work with GPL version of virtualmin ?
solution a) don’t seem to work, if it takes %0, it will takes the complete servername which is not good.
*** Thanks to gwarf and jangell on irc channel apache on freenode.
The solution is UserDir.
Ok, 1st go to Webmin Apache Module Configuration.
Global Configuration tab
Configure Apache Modules
Enable userdir then click "enable selected modules"
Sometimes webmin failed to restart apache
So when you come back to Module Index, click Start Apache on top right corner.
After, go to Global configuration again.
Then "Edit Config Files"
Choose the following file:
/etc/apache2/mods-available/userdir.conf
** Don’t confuse with /etc/apache2/mods-available/userdir.load
Add these 2 lines:
UserDir disabled root
UserDir public_html
Click Save
Then Apply Changes in top right corner of module index.
Check out the FAQ, it has some suggestions that will handle sub-domains. You can do that with either the DNS alias, or using the View Website Via Webmin option:
And for sub-domains?? How do I preview a sub-domain?
A “sub-domain” is the same as a “domain” to Virtualmin. Names simply don’t mean anything to Virtualmin–they are merely labels. So, this question is nonsensical.
Or, did you mean “sub-server”? In which case, it’s pretty much the same.
What specific problem are you having that leads you to ask?
Does anyone know the security settings to allow this to work? I’m getting a “Forbidden” error whenever I try to access www.mydomain.com/~user. I’ve tried many variations of the <Directory “homes/*/public_html”> but haven’t hit the right combo yet that allows access to the user webspace.
But I also recently come across a site where you can preview it directly online, can be a big hassle and time saver when you want to preview your site. The neat thing is that you can preview it on any server it’s on, so you could essentially preview it on different servers (if for some reason you needed to lol) while having no need to modify anything on those servers to do so or having to modify anything on your PC.
This wasn’t obvious to me at first: If you already have the domain set up and need to add the alias after the fact, you can just Create Virtual Server, and make it an alias of the (new, real, not yet resolving) server, with a name like newdomainname.HostingComany.TLD
I’m glad you got it figured out! That’s exactly it though, an alias would have been what I’d have suggested as well.
The one other option for viewing a site before the DNS exists would be to log into Virtualmin, choose the domain in question, then pick “Preview Website”.
The standard is maintained by the Payment Card Industry Security Standards Council, which maintains both the PCI DSS and a number of other standards, such as the Payment Card Industry PIN Entry Device security requirements (PCI PED) and the Payment Application Data Security Standard (PA-DSS).