elyk Posted March 14, 2005 Report Share Posted March 14, 2005 Is there a way to setup virtual hosts so that I could, for example, have the server show one director when accessed from mydomain.com, and a different directory if accessed from example.com? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 14, 2005 Report Share Posted March 14, 2005 Yes. You can set up a Virtual Host. Alleykat sent me a script that can do this.. which will be added to the Pro version of the Admin Panel when it comes out. If you would like it, i can send it to you but beware cause i have not yet test it out. You can always ask AlleyKat for more information. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
elyk Posted March 14, 2005 Author Report Share Posted March 14, 2005 About how long until the pro admin panel comes out? If it's only a week or two I think I'd rather not risk using an untested script. Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 14, 2005 Report Share Posted March 14, 2005 I have no idea. Currently i am working on the Lite version because as soon as Taras fixes the Process32 bug which is delaying the 3.3 release, we have to make a quick release and the Lite version should at least be in beta by then, but as for the Pro version, I have no idea. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 18, 2005 Report Share Posted March 18, 2005 Damn.. took me 2hrs to get it setup with the new Amdin Panel. Adding the language system integration and removing unneeded things i know of... (while watching T.V.) Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
elyk Posted March 18, 2005 Author Report Share Posted March 18, 2005 was a new admin panel released? I saw a blog post about that. Or is it just for beta testers?I take it that your above post means that the next version will be somewhat delayed? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 18, 2005 Report Share Posted March 18, 2005 nah... That was the Admin Panel 2.0I am currently working on the Lite version of it to release with 3.3 as soon as Taras fixes the Process32 bug. There will be no delay whatsoever...The Admin Panel is also still in development and no one has it yet. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 18, 2005 Report Share Posted March 18, 2005 By the way, did you ever get the VHost script AlleyKat was talkign about to work the way it is suppose too... I tried it but did not work well.. just referred me to the default /www/ even though the httpd.conf was chnaged and updated..... Did you try it with a domain also? Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
elyk Posted March 18, 2005 Author Report Share Posted March 18, 2005 I haven't tried it yet; I was waiting to wait for the admin panel with it to be released, but seeing as there's no release date...I'm going to pm alleykatEDIT: I just remembered that I had used another server before with these capabilties. Does it involve making an entry to the .conf file that looks something like this?:VirtualHost:*domain*:webdir=*directory*Then if you want to have separate settings you make another .conf file named after the virtual domain that's almost identical to the main .conf file? Or is that just specific to that webserver? The server was zouminiwebserver. Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 18, 2005 Report Share Posted March 18, 2005 Some packages do that but it really does not matter. You can have just 1 httpd.conf file if you want Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
elyk Posted March 19, 2005 Author Report Share Posted March 19, 2005 So is all I have to do add that one line to my .conf file? Or will that not work with this server? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 19, 2005 Report Share Posted March 19, 2005 Alleykat's script works perfect. Try it... but i do think that Apache has aproblem with creating VHost on localhost cause it only redirects you to the /www/ folder as you stated Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
elyk Posted March 19, 2005 Author Report Share Posted March 19, 2005 could you send me the script with a short explanation of how it works? I sent Alleykat a pm a couple of days ago and haven't got a response back. My email is elyk53 at gmail dot comThanks Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 20, 2005 Report Share Posted March 20, 2005 It has been attached to this post. vhosts.php Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
elyk Posted March 20, 2005 Author Report Share Posted March 20, 2005 thanks. I figured out how to use it and it seems to work. But it tells me on the side, under the list of hosts, Error in hosts file:localhost:80 does not exist Is this a problem or is it just confused? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 20, 2005 Report Share Posted March 20, 2005 That is because localhost is not a real domain... i think Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
elyk Posted March 20, 2005 Author Report Share Posted March 20, 2005 ok. One more question: If I add a virtual host, then later don't need it, what do I do to remove it? Or is that not possible? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 20, 2005 Report Share Posted March 20, 2005 Delete it from the httpd.conf file. It should be at the very buttom of the file Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
elyk Posted March 20, 2005 Author Report Share Posted March 20, 2005 OK. Thanks for all your help. Quote Link to comment Share on other sites More sharing options...
bebbet Posted May 7, 2005 Report Share Posted May 7, 2005 made a vhost using the scriptbebbet.testhost httpd.conf snipplet: <VirtualHost *>ServerName bebbet.testhostDocumentRoot W:/www/aa1/</VirtualHost> but i still get too w:/www/aa/ (i got index.php in /www/ wich redicts to /aa/)so...?! someone knows how to solve this problem?> *i allready enabled mod_vhost_alias *#LoadModule usertrack_module modules/mod_usertrack.soLoadModule vhost_alias_module modules/mod_vhost_alias.so#LoadModule ssl_module modules/mod_ssl.so* Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 8, 2005 Report Share Posted May 8, 2005 I am confused by your post... what do u mean, ofcourse it is suppose to link you to the W:/www/aa1 folder because that is what you set What do you mean: i got index.php in /www/ wich redicts to /aa/ Also i hope you have the .so file in the modules folder of Apache? Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
bebbet Posted May 8, 2005 Report Share Posted May 8, 2005 i got the server W:/www/ the root, if someone gets in the root (so not subdirs) i got PHP script: header(location: /aa/) so that it redicts to W:/www/aa/ my main site (i didn't want it in the root...)but if i try to pass trough the virtual host i only get to that location Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 8, 2005 Report Share Posted May 8, 2005 If you have mod_vhost_alias activated with the module in the Apache Module folder, it is suppose to work. Here is what i want you tod o to ensure i am able to help you right, i want you to paste the vhost setting here from the httpd.conf file. From what i understand you are trying to make a vhost but it redirects to the W:/www/ folder so you put PHP file there to redirect to W:/www/aa/, am i right? Thanks Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
bebbet Posted May 8, 2005 Report Share Posted May 8, 2005 my whole httpd.conf httpd.txt Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 8, 2005 Report Share Posted May 8, 2005 Try this and put the rest of the codes that are not here but you want in a .htaccess file under the folder after this is working... <VirtualHost *> ServerAdmin webmaster@bebbet.kicks-ass.net DocumentRoot /www/bebbet ServerName bebbet.kicks-ass.net ErrorLog logs/bebbet.kicks-ass.net-error_log CustomLog logs/bebbet.kicks-ass.net-access_log common </VirtualHost> #------ <VirtualHost *> ServerAdmin webmaster@free-hosting.kicks-ass.net DocumentRoot /www/free-hosting ServerName free-hosting.kicks-ass.net ErrorLog logs/free-hosting.kicks-ass.net-error_log CustomLog logs/free-hosting.kicks-ass.net-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... I do not know where you got your own version of the code from but i am absolutly sure that it is buggy and will never work because you do not have most of the needed things set. 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 http file to redirect all calls to localhost... Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.