Hi guys!
I'm trying to preview my web site before changing DNS.
Ideally, I would like something like: http://ip/user or http://ip/domaintopreview.com or http://myhostingcompany.com/customerdomain.com or http://myhostingcompany.com/username or http://myhostingcompany.com/~username
Something similar to what Plesk do for previewing web site...
I already read that document: http://www.virtualmin.com/faq/cat/virtualmin/68/#faq58
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, Maxime
Ok, really simple.
*** 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.
You may know access a web site by typing:
http://ip/~user
or
http://adomainonyourserver.com/~user
And Apache will serve /home/user/public_html as document root.
Enjoy!
Maxime
For anyone who runs into this in the future, there's some info regarding this in the Virtualmin FAQ as well:
http://www.virtualmin.com/faq/cat/virtualmin/68/#faq44
Broken link
And for sub-domains?? How do I preview a sub-domain?
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:
http://www.virtualmin.com/faq/cat/virtualmin/68/#faq44
<div class='quote'>And for sub-domains?? How do I preview a sub-domain?</div>
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?
--
Check out the forum guidelines!
Hi!
Yes, sorry, I mean sub-server.
I can access the "Top-level server" like this: http://myIP/~user
But I want to access a preview a "sub-server" inside that main "Top-level" server.
This "sub-server" is from the same owner of the "top-level".
So, I can access domain.com in top-level server like this http://myIP/~user, but don't know how to access the sub-domain like forum.domain.com
Regards,
=IceBurn=
The option Joe recommends in that FAQ is under the Virtual server creation tab in the Server Template.
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.
thanks...
Steve
Clue: There is a link to a FAQ which has an integer number between 43 and 45 hidden somewhere in this thread.
So where is this FAQ now on the new site?
Never mind, I found it at http://www.virtualmin.com/documentation/id,frequently_asked_questions under the heading "How do I make domains available before the DNS changes are made at the registrar? How do I make a users website available at "http://www.mydomain.tld/customerdomain"?"
I usually do it via the HOSTS file method http://pcandwebtips.blogspot.com/2007/09/viewing-your-website-before-dom...
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.
http://www.previewasite.com
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
Thanks, K
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".
Have a good one!
-Eric
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).
John