Pages: 123Next
Current Page: 1 of 3
Hosting multiple sites with WAMP
Posted by: QWERTYtech (---.dsl.wcfltx.swbell.net)
Date: January 10, 2008 10:20PM

I am needing to host multiple sites on my server but I haven't figured out how to set it up. Each site has its own URL. Can anyone help?

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: nyxel (---.nyxel.cz)
Date: January 10, 2008 11:07PM

Here [httpd.apache.org] is all you need .. smiling smiley ...

Apache has very good documentation, i recommend to read it winking smiley ...

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 11, 2008 07:23AM

Check and combine Setup Virtual Host and Setup LAN and Worldwide Access on my websites

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.swbell.net)
Date: January 12, 2008 05:37AM

After reading your GUIDES on VirtualHost's, I have done everything you said but my WAMP icon only goes to the YELLOW status. What could I be doing wrong?

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 12, 2008 06:00AM

2 most common errors people often get are:

1. Have blank space in front of the second line

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

2. Forget to delete those 2 dummy vh in httpd-vhosts.conf

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.swbell.net)
Date: January 12, 2008 05:06PM

I have checked both of those and they are all what they are suppost to be....

http.conf
=========

# Virtual hosts
Include conf/extra/httpd-vhosts.conf


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.
#
<VirtualHost *:80>
ServerAdmin user@qwertytech.no-ip.biz
DocumentRoot "W:/hidden/wamp/www/e107"
ServerName qwertytech.no-ip.biz
ErrorLog "W:/hidden/wamp/www/e107/logs/error_log"
CustomLog "W:/hidden/wamp/www/e107/logs/access_log common"
</VirtualHost>

<VirtualHost *:80>
ServerAdmin user@qwertytech.no-ip.biz
DocumentRoot "W:/hidden/wamp/www/flash/"
ServerName theshireys.no-ip.info
ErrorLog "W:/hidden/wamp/www/flash/logs/error_log"
CustomLog "W:/hidden/wamp/www/flash/access_log common"
</VirtualHost>

Thanks,
QWERTYtech

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

Is drive w resides in the same computer? If not, you have the problem right there

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.swbell.net)
Date: January 12, 2008 06:14PM

Drive W is another drive on my server.

Thanks,
QWERTYtech

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

My question is it on the same computer or on your network? If on network, you have problem to map the drive in apache

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.swbell.net)
Date: January 12, 2008 07:28PM

No, that is a dedicated drive on my server. Not a drive that needs to be mapped.

Here are my two sites.... [qwertytech.no-ip.biz] & [theshireys.no-ip.info]

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: yfastud (Moderator)
Date: January 12, 2008 11:31PM

In that case, you might want to undo everything and redo it, but device by section, and resart wamp in each section to make sure everything is ok

Step 1 - 2
Step 3
Step 4
Step 5 - 6

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: TwistedChaos (---.rochester.res.rr.com)
Date: January 13, 2008 05:32AM

ok another option is the fact that you have to add the directory command in each virtual host to allow access to it

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

Okay,

After removing everything I did and restarting the WAMP server, I am only showing a yellow icon instead of the full white icon. Any ideas????

Thanks,
QWERTYtech

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

I guess you had a typo somewhere that cause the problem. Did you have backup copy for file httpd.conf? Use it instead, and redo all the steps, then try again

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 14, 2008 05:36AM

I actually don't... Anywhere I can get one?

Thanks,
QWERTYtech

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: TwistedChaos (---.rochester.res.rr.com)
Date: January 14, 2008 02:05PM

virtual host does not support the command custom log with creating the command to tell it what custom log is....

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: TwistedChaos (---.rochester.res.rr.com)
Date: January 14, 2008 02:07PM

an example would to be to find custom log in httpd.conf and copy it right above custom log....
....




<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog "c:/wamp/logs/access.log" common

#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog logs/access.log combined
</IfModule>

Options: ReplyQuote
Re: Hosting multiple sites with WAMP
Posted by: TwistedChaos (---.rochester.res.rr.com)
Date: January 14, 2008 02:10PM

replace your custom log command with the above...

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

Okay,
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.

This is an example of one of my VirtualHost groups....

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

Whenever i look at the file using Crimpson Editor, my ServerAlias tag shows up black and not blue like the others. ??????

Any suggestions??

Thanks,
QWERTYtech

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

@ TwistedChaos
Not sure what you're talking about since I've just delete all log files including custom logs in my test folder and after restart wamp, log files auto created immediately. I've already tested in both xp and vista w/o any problem

@ QWERTYtech
Just notice that you did NOT copy and paste my codes from my guides, but edit from those dummy vh, and if you take a closer look, my vh codes do NOT have any double quote, so take out those quote and restart wamp to take effect

Have fun,

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

Options: ReplyQuote
Pages: 123Next
Current Page: 1 of 3


Sorry, only registered users may post in this forum.