Change default directory
Posted by: mikekay (---.bluarc.ca)
Date: June 02, 2009 07:42PM

Greetings again. WAMP is working perfectly - only thing is that when I type in localhost in a browser I would like to start Bugzilla instead of the default interface for WAMP.

How can I change this?

Thanks.

Options: ReplyQuote
Re: Change default directory
Posted by: toumimi (---.11.115-78.rev.gaoland.net)
Date: June 02, 2009 09:32PM

Hi,

Here is a tip I have used before.
It redirects you to any location if wamp is online (normal behaviour when offline).

Add those lines in our www index (line 27, after "fclose ($fp);" ),
and modify YOUR_LOCATION by whatever you want (probably bugzilla/index.php)

preg_match('|status = "(.*)"\n|',$wampConfFileContents,$result);
if($result[1]=='online') {
	header('Location: YOUR_LOCATION');
	exit();
}

Hope this can help...

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Change default directory
Posted by: yfastud (Moderator)
Date: June 02, 2009 10:28PM

you should use vh to setup startup page for bugzilla instead so you can keep wamp index page to maintain your server
to setup vh, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Change default directory
Posted by: toumimi (---.11.115-78.rev.gaoland.net)
Date: June 02, 2009 10:43PM

Quote
mikemay
The main purpose for WAMP in my case is to use it for a Bugzilla server

He said in last post that he only used wamp for this case and so, he doesn't need to setup a virtual host.
However, if he want to use it for multiple applications, it would be better to setup vh...

You choose what you (will) need..

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.