I've read the various topics on site preview before DNS propogation, but I still cannot see my virtual site to work.
I set up Webmin and Virtualmin using the automated install script. This worked fine. I set up my first virtual domain and copied an index file into its directory (/home/martyn/public_html). After I did this, lo and behold, I can see the page at 192.168.0.105 (the IP address of my server on my local network).
I then followed the instructions to add /home/%0/public_htm to the Default virtual server by clicking the Automatic Virtual Hosts icon and switching the radio button by Automatic virtual host root to the one beside the empty field, and filling in the field with /home/%0/public_html
Now when I type 192.168.0.105 into the browser I get "Not Found The requested URL / was not found on this server. Apache/2.2.3 (CentOS) Server at 192.168.0.105 Port 80" This may be correct behavior, but I get the same or similar messages when I type:
http://192.168.0.105/~martyn http://192.168.0.105/~martyn.com and http://192.168.0.105/martyn.com (I wasn't sure what the correct address was, so I tried all 3 possibilities)
I am guessing that I have missed a step. Any ideas?
Centos 5.2 Apache/2.2.3<br><br>Post edited by: martynw, at: 2008/12/24 12:51
Well, there's a few different ways to do that, and we can look into this further to figure out why what you did isn't working as expected...
However, there may be an easier way as well -- if you log into Virtualmin, click Services -> View Website via Webmin -- and you'll be able to browse your site without having the DNS pointed at your server yet.
-Eric
this might be solved as I can see the site.
Else you want to add to your pc the IP and domainname.
go to
[code:1]C:\WINDOWS\system32\drivers\etc[/code:1]
open hosts file and add
192.168.0.105 kkandkcpas.com
I reinstalled CentOS and the install.sh script and the virtual domains are working fine now.
I used Ronald's method for testing and that works well. I think what may have happened before was that my migration from cPanel worked as far as creating the databases BUT it didn't copy any site content or any mailboxes, so when I tried Ronald's method before the public_html directory was empty, hence the error.
Thank man, I was search this.
la misma de siempre
Thanks for the advice.
Eric, under Virtualmin Services I see:
[ul][li]Configure Website
[/li][li]DAV Authentication[/li]
[li]DNS Domain[/li]
[li]Mailing Lists[/li]
[li]Protected Directories[/li]
[/ul]
and under Configure Web site I have:
Processes and Limits
Networking and Addresses
Log Files
Document Options
MIME Types
Error Handling
User and Group
Aliases and Redirects
CGI Programs
Directory Indexing
Proxying
SSL Options
PHP
Automatic Virtual Hosts
Filters
Languages
Show Directives
Edit Directives
But I don't see a "View Website via Webmin" option. In Webmin - Servers - Apache Web server, I see OPEN options, but these simply open the Web site which is currently hosted on another server.
Could you point me in the right direction?
Ronald, I did as you suggested and when I now type kkandkcpas.com I get:
Not Found
The requested URL / was not found on this server.
Apache/2.2.3 (CentOS) Server at kkandkcpas.com Port 80
It makes me think that Virtual Admin is not serving up the site and that is why I can't see it in preview mode.
--
Martyn
martynw
I think that function is only on the paid version (so far). It is on my Christmas wish list too.
Thanks Flameproof for the clarification - I am thinking the same.
I checked out the Apache error logs:
[Tue Dec 23 19:21:07 2008] [error] [client 192.168.0.101] File does not exist: /home/192.168.0.105
It looks like %0 is picking up the IP address rather than the name of the domain.
>> I think that function is only on the paid version (so far)
As a new potential customer trying to evaluate Virtualmin, I'm really getting tired of running into things like this that are not in the GPL version.
I cannot find any document on this site that really compares the GPL version with the paid Pro version. This is VERY frustrating. I'm about ready to give up and remove Virtualmin and use something else that I can evaluate properly.
At this point I'm just trying to view a new virtual site. The real site is already running on another server but I need to be able to test it on my Virtualmin server to be sure it's working before cutting the old server to the new server (I'm trying to migrate existing sites on other servers into VMs within my Virtualmin server).
So I guess I'll look at the other ways of doing the proxy. But the "View website via Webmin" REALLY needs to be added to the GPL version asap.
Hi Zugg,
I know the site preview function is nice, but in the meantime, you can always solve that problem by adding the IP address of your test server to your hosts file (which will work on Windows or Linux):
http://en.wikipedia.org/wiki/Hosts_file
You can add that in when you're ready to do some testing, and just comment it out when you're done.
You're right, not all the Pro features are included in the "Compare" URL listed on the bottom of the page. I'll talk to Joe about building a more comprehensive list.
And indeed, the forum software has issues :-) They're working on a new site as we speak though, which should take care of a things like editing posts.
Thanks,
-Eric
Sorry for the double post. Your forum system needs a way for users to delete their own posts, or some protection from having the Back button doing a duplicate post. Anyway, sorry.
Thanks for mentioning the Compare link at the bottom. I hadn't seen that yet. Honestly, the links at the *bottom* of a web site should be for stuff like Privacy Statement, Press, etc and not for *useful* links. In your site redesign you should really be placing a lot of those bottom links onto a side navigation or at the top where people can find them.
Anyway, with your suggestion about the hosts file, that's not the problem. I can get to the main Virtualmin web site on my server via the IP address. But I cannot get to any of the other virtual sites that I've added. In other words, the server has a single IP address that is shared by multiple virtual sites. Using the IP address only goes to the first/main virtual site. The rest of the sites require the domain name from to redirect Apache to the proper VirtualHost entry. And I cannot change the DNS for the domain names until I'm sure the new virtual sites will work.
So I'm like the others in this thread where I need something like:
http://1.2.3.4/subdomain
where 1.2.3.4 is the IP address of my box, and "subdomain" is one of my other virtual sites. I cannot use the normal alias version of http://subdomain.mydomain.com because mydomain.com isn't in the DNS server yet...all I have is the IP address.
<div class='quote'>Anyway, with your suggestion about the hosts file, that's not the problem.</div>
Yes, actually, if you add the names to your hosts file, they will work. Your client will then be including the hostname in the request.
<div class='quote'>So I'm like the others in this thread where I need something like:
http://1.2.3.4/subdomain</div>
This is covered in the FAQ:
http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,fre...
--
Check out the forum guidelines!
Woot! Thanks for the help...the Hosts file idea worked great. I was able to point www.mysite.com to my existing site, but then point just mysite.com to the Virtualmin site. Don't know why I didn't think that would work.
Well, that's a good first step. Now I can at least view my web sites on the Virtualmin server. Now if I can only solve the PHP4 problem mentioned in my other thread, I'll be all set.
Btw, the link http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,fre... was way over my head. Neither of the "better" methods work because the second requires Virtualmin Pro and the third requires a subdomain of the main Virtualmin site, and my Virtualmin site isn't even in DNS yet (and won't be while I'm still just evaluating all of this). So that leaves the first methods, which are way over my head.
But I can use the Hosts method just fine at this point.
Just edit the file /etc/httpd/conf/httpd.conf and append
UserDir public_html
this works, i spent 2 days looking for it. I just wanted to have users preview their website using http://ip/~username
The method above only works for static HTML files (php does not work on this option), and is apparently a security risk:
https://www.virtualmin.com/documentation/web/faq