Pages: Previous123Next
Current Page: 2 of 3
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 15, 2008 03:35AM

Quote

I got my server back up and running. My problem now is trying to get to any of my sites: [qwertytech.no-ip.biz] & [theshireys.no-ip.info] . You get my default index.html page.
you need to setup dns and I'm still in progress to updating guides including this

Have fun,

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



Edited 1 time(s). Last edit at 01/15/2008 03:36AM by yfastud.

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: QWERTYtech (---.dsl.wcfltx.sbcglobal.net)
Date: January 15, 2008 04:04AM

I took the dbl quotes out already.

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: QWERTYtech (---.dsl.wcfltx.sbcglobal.net)
Date: January 16, 2008 03:57AM

Okay,

I have gotten my server working now. I have WAMP working also. The thing I'm having problems with is my VIRTUAL HOST file. I have slowly added <VIRTUAL HOST> and still can't get it to work. Here is my Virtual Host that I have in my file...

<VirtualHost *:80>
ServerName qwertytech.no-ip.biz
ServerAlias qwertytech.no-ip.biz
DocumentRoot h:/wamp/www/e107
ErrorLog h:/wamp/www/e107/logs/error_log
CustomLog h:/wamp/www/e107/logs/access_log common
</VirtualHost>

The ServerAlias shows up in black text like it doesn't accept it. What could I be doing wrong?

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 16, 2008 04:34AM

Did you type it right since both servername and serveralias are the same

Have fun,

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

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: QWERTYtech (---.dsl.wcfltx.sbcglobal.net)
Date: January 16, 2008 04:37AM

I didn't know what to put on ServerAlias.... ????

My URL is [qwertytech.no-ip.biz]

What do I need to put in the entire Virtual Host????

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 16, 2008 04:39AM

Since your domain is subdomain of no-ip so you don't need that line

<VirtualHost *:80>
ServerName qwertytech.no-ip.biz
DocumentRoot h:/wamp/www/e107
ErrorLog h:/wamp/www/e107/logs/error_log
CustomLog h:/wamp/www/e107/logs/access_log common
</VirtualHost>

But if you've already bought your own domain, consider to get your own dns such as free account at zoneedit

Have fun,

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



Edited 1 time(s). Last edit at 01/16/2008 04:40AM by yfastud.

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: QWERTYtech (---.dsl.wcfltx.sbcglobal.net)
Date: January 16, 2008 05:10AM

Still not working... I'm going to show the entire httpd-vhosts.conf

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

#QWERTYtech
<VirtualHost *:80>
ServerName qwertytech.no-ip.biz
DocumentRoot h:/wamp/www/e107
ErrorLog h:/wamp/www/e107/logs/error_log
CustomLog c:/wamp/www/e107/logs/access_log common
</VirtualHost>


#TheShirey's
<VirtualHost *:80>
DocumentRoot h:/wamp/www/flash/
ServerName theshireys.no-ip.info
ErrorLog h:/wamp/www/flash/logs/error_log
CustomLog h:/wamp/www/flash/logs/access_log common
</VirtualHost>


#localhost
<VirtualHost *:80>
ServerName localhost
DocumentRoot h:/wamp/www
ErrorLog h:/wamp/www/logs/error.log
CustomLog h:/wamp/www/logs/access.log common
</VirtualHost>

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: ChrisRChamberlain (78.145.14.---)
Date: January 16, 2008 05:44PM

Hi

WAMP newbie so please be gentle!

Converting from a regular Apache/MySQL/PHP setup where the following code existed

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.mywebsite,con
DocumentRoot "/server/htdocs/mywebsite"
</VirtualHost>

where each website had its own code block including the relevant folder as above

what should 'ServerName' be and what should
'DocumentRoot' be?

TIA

Chris

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 16, 2008 06:05PM

@ QWERTYtech
Quote

ErrorLog h:/wamp/www/e107/logs/error_log
CustomLog c:/wamp/www/e107/logs/access_log common
Where did you install wamp, on c: or on hmoody smiley

@ ChrisRChamberlain

By default, it should be in c:/wamp/www, and vh codes should be

NameVirtualHost *:80

<VirtualHost *:80>
ServerName your_domain. com
DocumentRoot c:/wamp/www/your_domain
ErrorLog c:/wamp/www/your_domain/logs/error_log
CustomLog c:/wamp/www/your_domain/logs/access_log common
</VirtualHost>

You better check Setup Virtual Host on my websites

Have fun,

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



Edited 2 time(s). Last edit at 01/17/2008 05:28AM by yfastud.

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: QWERTYtech (---.dsl.wcfltx.sbcglobal.net)
Date: January 17, 2008 05:21AM

I have it setup on C. I don't know why I was putting h.

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: ChrisRChamberlain (78.145.14.---)
Date: January 17, 2008 09:35AM

@ yfastud

Many thanks for your help and excellent tutorials!

All works as expected

Chris

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: QWERTYtech (---.sw.biz.rr.com)
Date: January 17, 2008 03:01PM

Okay,

I went through and did everything from start to finish on your GUIDE since ChrisRChamerlain was able to get his working. Whenever I try to access my site by using [qwertytech] or [theshireys] or even [qwertytech.no-ip.biz] or [theshireys.no-ip.info] , i get my index.html page in C:\WAMP\WWW\ folder. For some reason it does not look inside the folders I tell it to in the Virtual Hosts.

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

#QWERTYtech
<VirtualHost *:80>
ServerName qwertytech.no-ip.biz
ServerAlias qwertytech.no-ip.biz qwertytech
DocumentRoot C:/wamp/www/e107
ErrorLog C:/wamp/www/e107/logs/error.log
CustomLog C:/wamp/www/e107/logs/access.log common
</VirtualHost>

#TheShirey's
<VirtualHost *:80>
ServerName theshireys.no-ip.info
ServerAlias theshireys
DocumentRoot C:/wamp/www/flash
ErrorLog C:/wamp/www/flash/logs/error.log
CustomLog C:/wamp/www/flash/logs/access.log common
</VirtualHost>

#localhost
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog C:/wamp/www/logs/error.log
CustomLog C:/wamp/www/logs/access.log common
</VirtualHost>

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 17, 2008 03:16PM

Change your codes to:

<VirtualHost *:80>
ServerName qwertytech.no-ip.biz
ServerAlias qwertytech
DocumentRoot C:/wamp/www/e107
ErrorLog C:/wamp/www/e107/logs/error.log
CustomLog C:/wamp/www/e107/logs/access.log common
</VirtualHost>

Then you can access w/i your LAN w/ local domains qwertytech and theshireys, but if you want to access your domain worldwide, you need to setup dns associated w/ your vh

Have fun,

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

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: QWERTYtech (---.sw.biz.rr.com)
Date: January 17, 2008 04:33PM

what do u mean DNS? I have my site through No-IP.

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 18, 2008 01:54AM

Quote

No-IP™ provides managed DNS, dynamic DNS , domain registration, email and many other domain related services to over 5 million customer worldwide. Backed by a global network of redundant systems, No-IP ensures fast response and 100% uptime.
Above is intro from no-ip.com, and you should check w/ them how to setup dns

Have fun,

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

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: QWERTYtech (---.sw.biz.rr.com)
Date: January 18, 2008 09:41PM

I have a small app from them that constantly updates my IP with my domain.

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 19, 2008 03:32AM

Dynamic updater is used to cover your dynamic ip, and has nothing to do w/ dns. Having dynamic updater or not is NOT necessary, but you MUST have dns in order to use (sub)domains

Have fun,

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

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: Mr.Bane (---.eugn.qwest.net)
Date: February 16, 2008 09:34PM

So, I did this setup and I get this error (And a yellow meter bar from WAMP):

The Instruction at "0x7c910de3" referenced memory at 0xffffff8". The memory could not be "read".

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: February 16, 2008 09:36PM

this is a memory error, just restart wamp?

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: Mr.Bane (---.eugn.qwest.net)
Date: February 16, 2008 10:07PM

Yes, this is what happens when I Restart All Services on WAMP.

Options: ReplyQuote
Pages: Previous123Next
Current Page: 2 of 3


Sorry, only registered users may post in this forum.