
Hi skunk(ette)s, Now now, How do I go about setting the configuration above? My searching around on the net didn't get me any solution that I can use instead I had to restore vhosts.conf back. Windows\hosts is ok I can access the different IPs I have setup. Nitashukuru.

Hi ken, i do it the old fashioned way. # add to end of httpd.conf and then restart apache # i have used localhost but you can use your comp's IP # Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:80 # This is the configuration for your project Listen 127.0.0.1:80 <VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/kennedy/web" DirectoryIndex index.php <Directory "E:/xampp/htdocs/kennedy/web"> AllowOverride All Allow from All </Directory> On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
Hi skunk(ette)s,
Now now, How do I go about setting the configuration above? My searching around on the net didn't get me any solution that I can use instead I had to restore vhosts.conf back.
Windows\hosts is ok I can access the different IPs I have setup.
Nitashukuru.

On Thu, May 6, 2010 at 4:46 PM, ukuta ken <ukutaken@gmail.com> wrote:
Hi ken,
i do it the old fashioned way.
# add to end of httpd.conf and then restart apache # i have used localhost but you can use your comp's IP
# Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:80
# This is the configuration for your project Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/kennedy/web" DirectoryIndex index.php <Directory "E:/xampp/htdocs/kennedy/web"> AllowOverride All Allow from All </Directory>
On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
Hi skunk(ette)s,
Now now, How do I go about setting the configuration above? My searching around on the net didn't get me any solution that I can use instead I had to restore vhosts.conf back.
Doesn't vhosts.conf have written examples of how to add more virtual hosts? IIRC, there should be. It is also possible to use "Include" directive to add virtual hosts based on files: Include /path/to/some/files/*.cf or such thing... The only difference between Apache on Unix and Windows should be the way paths are specified, no? -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube

@ukuta I tried that out but on restarting XAMPP/apache service it does not start. Below is what how far I reached maybe there's something I aint seeing. for Hosts file in windows... 127.0.0.1 localhost 127.0.0.1 makmende.dev 127.0.0.1 www.makmende.dev for vhosts.conf in xampp... NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/ ServerName localhost <DIRECTORY "C:/PROGRAM FILES/XAMPP/HTDOCS"> IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost> <VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ ServerName makmende.dev ServerAlias makmende.dev CustomLog c:\www\www.makmende.dev\www.makmende.dev-access_log common ErrorLog c:\www\www.makmende.dev\www.makmende.dev-error_log <DIRECTORY C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost> But still with this Apache wont restart, but on deleting. It starts. Ken On Thu, May 6, 2010 at 5:02 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Thu, May 6, 2010 at 4:46 PM, ukuta ken <ukutaken@gmail.com> wrote:
Hi ken,
i do it the old fashioned way.
# add to end of httpd.conf and then restart apache # i have used localhost but you can use your comp's IP
# Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:80
# This is the configuration for your project Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/kennedy/web" DirectoryIndex index.php <Directory "E:/xampp/htdocs/kennedy/web"> AllowOverride All Allow from All </Directory>
On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
Hi skunk(ette)s,
Now now, How do I go about setting the configuration above? My searching around on the net didn't get me any solution that I can use instead I had to restore vhosts.conf back.
Doesn't vhosts.conf have written examples of how to add more virtual hosts? IIRC, there should be. It is also possible to use "Include" directive to add virtual hosts based on files:
Include /path/to/some/files/*.cf or such thing...
The only difference between Apache on Unix and Windows should be the way paths are specified, no?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

What am getting from research is that it is pretty straight forward with independent apache installations. But am Using XAMPP package, I dont know why it should be any different. On Thu, May 6, 2010 at 5:49 PM, Kennedy Kairaria <kenkairaria@gmail.com>wrote:
@ukuta I tried that out but on restarting XAMPP/apache service it does not start. Below is what how far I reached maybe there's something I aint seeing.
for Hosts file in windows...
127.0.0.1 localhost 127.0.0.1 makmende.dev 127.0.0.1 www.makmende.dev
for vhosts.conf in xampp...
NameVirtualHost *:80
<VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/ ServerName localhost
<DIRECTORY "C:/PROGRAM FILES/XAMPP/HTDOCS"> IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost>
<VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ ServerName makmende.dev ServerAlias makmende.dev
CustomLog c:\www\www.makmende.dev\www.makmende.dev-access_log common ErrorLog c:\www\www.makmende.dev\www.makmende.dev-error_log
<DIRECTORY C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost>
But still with this Apache wont restart, but on deleting. It starts.
Ken
On Thu, May 6, 2010 at 5:02 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Thu, May 6, 2010 at 4:46 PM, ukuta ken <ukutaken@gmail.com> wrote:
Hi ken,
i do it the old fashioned way.
# add to end of httpd.conf and then restart apache # i have used localhost but you can use your comp's IP
# Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:80
# This is the configuration for your project Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/kennedy/web" DirectoryIndex index.php <Directory "E:/xampp/htdocs/kennedy/web"> AllowOverride All Allow from All </Directory>
On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
Hi skunk(ette)s,
Now now, How do I go about setting the configuration above? My searching around on the net didn't get me any solution that I can use instead I had to restore vhosts.conf back.
Doesn't vhosts.conf have written examples of how to add more virtual hosts? IIRC, there should be. It is also possible to use "Include" directive to add virtual hosts based on files:
Include /path/to/some/files/*.cf or such thing...
The only difference between Apache on Unix and Windows should be the way paths are specified, no?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On Thu, May 6, 2010 at 5:52 PM, Kennedy Kairaria <kenkairaria@gmail.com>wrote:
What am getting from research is that it is pretty straight forward with independent apache installations. But am Using XAMPP package, I dont know why it should be any different.
The clue is in httpd-error-log or whatever it is called in your Windows system. AFAIK, there is not any difference between XAMPP and other Apache installs which manually integrate the other components (MySQL, PHP, mod-Perl) -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube

I managed to get the log and here it is..Apparently I cant make any sense of it. Content-language: cs Content-type: text/html; charset=ISO-8859-2 Body:----------cs-- <!--#set var="CONTENT_LANGUAGE" value="cs" --><!--#set var="CHARACTER_ENCODING" value="ISO-8859-2" --><!--#set var="TITLE" value="Slu¾ba není dostupná!" --><!--#include virtual="include/top.html" --> Server doèasnì nemù¾e zpracovat Vá¹ po¾adavek kvùli údr¾bì nebo kapacitním problémùm. Zkuste to, prosím, pozdìji. <!--#include virtual="include/bottom.html" --> On Thu, May 6, 2010 at 6:02 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Thu, May 6, 2010 at 5:52 PM, Kennedy Kairaria <kenkairaria@gmail.com>wrote:
What am getting from research is that it is pretty straight forward with independent apache installations. But am Using XAMPP package, I dont know why it should be any different.
The clue is in httpd-error-log or whatever it is called in your Windows system. AFAIK, there is not any difference between XAMPP and other Apache installs which manually integrate the other components (MySQL, PHP, mod-Perl)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On Thu, May 6, 2010 at 6:08 PM, Kennedy Kairaria <kenkairaria@gmail.com>wrote:
I managed to get the log and here it is..Apparently I cant make any sense of it.
Content-language: cs Content-type: text/html; charset=ISO-8859-2 Body:----------cs--
<!--#set var="CONTENT_LANGUAGE" value="cs" --><!--#set var="CHARACTER_ENCODING" value="ISO-8859-2" --><!--#set var="TITLE" value="Slu¾ba není dostupná!"
--><!--#include virtual="include/top.html" -->
Server doèasnì nemù¾e zpracovat Vá¹ po¾adavek kvùli údr¾bì nebo kapacitním problémùm. Zkuste to, prosím, pozdìji.
<!--#include virtual="include/bottom.html" -->
That can't be it, unless things have really changed. You can't be logging in that format. That is not the log file you viewed, but some other file. Check/search your httpd.conf for "ErrorLog". It should tell you the path to the file you need to check.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube

Hello ken 1. the error logs are in your xampp\apache\logs directory 2. in httpd.conf, Remove/Delete the last instructions . i have given you different instructions below. 3. ensure YOUR directories exist. in the example below, i have the entry in my /etc/hosts files as 127.0.0.1 makmende.ke 4. notice that i have commented out the listen directive since my httpd is already listening to port 80 somewhere before this. 5. notice also that the logs are now domain specific. #--------------------------------------------------------------------------------------------# # append the following to httpd.conf and restart NameVirtualHost 127.0.0.1:80 #Listen 127.0.0.1:80 <VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/makmende.ke/" ServerName www.makmende.ke ServerAlias makmende.ke ErrorLog "e:/xampp/apache/logs/makmende.ke-error-log" TransferLog "e:/xampp/apache/logs/makmende.ke-access-log" </VirtualHost> #--------------------------------------------------------------------------------------------# regards ukuta On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
@ukuta I tried that out but on restarting XAMPP/apache service it does not start. Below is what how far I reached maybe there's something I aint seeing.
for Hosts file in windows...
127.0.0.1 localhost 127.0.0.1 makmende.dev 127.0.0.1 www.makmende.dev
for vhosts.conf in xampp...
NameVirtualHost *:80
<VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/ ServerName localhost
<DIRECTORY "C:/PROGRAM FILES/XAMPP/HTDOCS"> IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost>
<VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ ServerName makmende.dev ServerAlias makmende.dev
CustomLog c:\www\www.makmende.dev\www.makmende.dev-access_log common ErrorLog c:\www\www.makmende.dev\www.makmende.dev-error_log
<DIRECTORY C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost>
But still with this Apache wont restart, but on deleting. It starts.
Ken
On Thu, May 6, 2010 at 5:02 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Thu, May 6, 2010 at 4:46 PM, ukuta ken <ukutaken@gmail.com> wrote:
Hi ken,
i do it the old fashioned way.
# add to end of httpd.conf and then restart apache # i have used localhost but you can use your comp's IP
# Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:80
# This is the configuration for your project Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/kennedy/web" DirectoryIndex index.php <Directory "E:/xampp/htdocs/kennedy/web"> AllowOverride All Allow from All </Directory>
On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
Hi skunk(ette)s,
Now now, How do I go about setting the configuration above? My searching around on the net didn't get me any solution that I can use instead I had to restore vhosts.conf back.
Doesn't vhosts.conf have written examples of how to add more virtual hosts? IIRC, there should be. It is also possible to use "Include" directive to add virtual hosts based on files:
Include /path/to/some/files/*.cf or such thing...
The only difference between Apache on Unix and Windows should be the way paths are specified, no?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

try 127.0.0.1:81 On Fri, May 7, 2010 at 8:07 AM, ukuta ken <ukutaken@gmail.com> wrote:
Hello ken
1. the error logs are in your xampp\apache\logs directory
2. in httpd.conf, Remove/Delete the last instructions . i have given you different instructions below.
3. ensure YOUR directories exist. in the example below, i have the entry in my /etc/hosts files as 127.0.0.1 makmende.ke
4. notice that i have commented out the listen directive since my httpd is already listening to port 80 somewhere before this.
5. notice also that the logs are now domain specific.
#--------------------------------------------------------------------------------------------# # append the following to httpd.conf and restart
NameVirtualHost 127.0.0.1:80
#Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/makmende.ke/" ServerName www.makmende.ke ServerAlias makmende.ke ErrorLog "e:/xampp/apache/logs/makmende.ke-error-log" TransferLog "e:/xampp/apache/logs/makmende.ke-access-log" </VirtualHost>
#--------------------------------------------------------------------------------------------#
regards
ukuta
On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
@ukuta I tried that out but on restarting XAMPP/apache service it does not start. Below is what how far I reached maybe there's something I aint seeing.
for Hosts file in windows...
127.0.0.1 localhost 127.0.0.1 makmende.dev 127.0.0.1 www.makmende.dev
for vhosts.conf in xampp...
NameVirtualHost *:80
<VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/ ServerName localhost
<DIRECTORY "C:/PROGRAM FILES/XAMPP/HTDOCS"> IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost>
<VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ ServerName makmende.dev ServerAlias makmende.dev
CustomLog c:\www\www.makmende.dev\www.makmende.dev-access_log common ErrorLog c:\www\www.makmende.dev\www.makmende.dev-error_log
<DIRECTORY C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost>
But still with this Apache wont restart, but on deleting. It starts.
Ken
On Thu, May 6, 2010 at 5:02 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Thu, May 6, 2010 at 4:46 PM, ukuta ken <ukutaken@gmail.com> wrote:
Hi ken,
i do it the old fashioned way.
# add to end of httpd.conf and then restart apache # i have used localhost but you can use your comp's IP
# Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:80
# This is the configuration for your project Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/kennedy/web" DirectoryIndex index.php <Directory "E:/xampp/htdocs/kennedy/web"> AllowOverride All Allow from All </Directory>
On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
Hi skunk(ette)s,
Now now, How do I go about setting the configuration above? My searching around on the net didn't get me any solution that I can use instead I had to restore vhosts.conf back.
Doesn't vhosts.conf have written examples of how to add more virtual hosts? IIRC, there should be. It is also possible to use "Include" directive to add virtual hosts based on files:
Include /path/to/some/files/*.cf or such thing...
The only difference between Apache on Unix and Windows should be the way paths are specified, no?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f...
------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Solved it finally. Thanks to Ukuta Ken and Odhiambo Washington For future similar Qs this is how I solved it *for httpd-vhosts.conf *NameVirtualHost *:80 <VirtualHost 127.0.0.1:80> DocumentRoot "C:/PROGRAM FILES/XAMPP/HTDOCS/" ServerName localhost </VirtualHost> <VirtualHost 127.0.0.2:80> DocumentRoot "C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/" ServerName makmende.dev ServerAlias www.makmende.dev </VirtualHost> <VirtualHost 127.0.0.3:80> DocumentRoot "C:/PROGRAM FILES/XAMPP/HTDOCS/myportfolio/" ServerName myportfolio.dev ServerAlias www.myportfolio.dev </VirtualHost> *for windows\hosts *127.0.0.1 localhost 127.0.0.2 makmende.dev 127.0.0.2 www.makmende.dev 127.0.0.2 myportfolio.dev 127.0.0.2 www.myportfolio.dev You can also add subdomains with the above ukitaka. Ken On Fri, May 7, 2010 at 8:18 AM, victor yegon <viktayeg@gmail.com> wrote:
try 127.0.0.1:81
On Fri, May 7, 2010 at 8:07 AM, ukuta ken <ukutaken@gmail.com> wrote:
Hello ken
1. the error logs are in your xampp\apache\logs directory
2. in httpd.conf, Remove/Delete the last instructions . i have given you different instructions below.
3. ensure YOUR directories exist. in the example below, i have the entry in my /etc/hosts files as 127.0.0.1 makmende.ke
4. notice that i have commented out the listen directive since my httpd is already listening to port 80 somewhere before this.
5. notice also that the logs are now domain specific.
#--------------------------------------------------------------------------------------------# # append the following to httpd.conf and restart
NameVirtualHost 127.0.0.1:80
#Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/makmende.ke/" ServerName www.makmende.ke ServerAlias makmende.ke ErrorLog "e:/xampp/apache/logs/makmende.ke-error-log" TransferLog "e:/xampp/apache/logs/makmende.ke-access-log" </VirtualHost>
#--------------------------------------------------------------------------------------------#
regards
ukuta
On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
@ukuta I tried that out but on restarting XAMPP/apache service it does not start. Below is what how far I reached maybe there's something I aint seeing.
for Hosts file in windows...
127.0.0.1 localhost 127.0.0.1 makmende.dev 127.0.0.1 www.makmende.dev
for vhosts.conf in xampp...
NameVirtualHost *:80
<VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/ ServerName localhost
<DIRECTORY "C:/PROGRAM FILES/XAMPP/HTDOCS"> IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost>
<VirtualHost *:80> DocumentRoot C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ ServerName makmende.dev ServerAlias makmende.dev
CustomLog c:\www\www.makmende.dev\www.makmende.dev-access_log common ErrorLog c:\www\www.makmende.dev\www.makmende.dev-error_log
<DIRECTORY C:/PROGRAM FILES/XAMPP/HTDOCS/makmende/ IndexOptions +FancyIndexing NameWidth=* Options Includes FollowSymLinks Indexes AllowOverride All Order allow,deny Allow from all </DIRECTORY> </VirtualHost>
But still with this Apache wont restart, but on deleting. It starts.
Ken
On Thu, May 6, 2010 at 5:02 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Thu, May 6, 2010 at 4:46 PM, ukuta ken <ukutaken@gmail.com> wrote:
Hi ken,
i do it the old fashioned way.
# add to end of httpd.conf and then restart apache # i have used localhost but you can use your comp's IP
# Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:80
# This is the configuration for your project Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80> DocumentRoot "E:/xampp/htdocs/kennedy/web" DirectoryIndex index.php <Directory "E:/xampp/htdocs/kennedy/web"> AllowOverride All Allow from All </Directory>
On 5/6/10, Kennedy Kairaria <kenkairaria@gmail.com> wrote:
Hi skunk(ette)s,
Now now, How do I go about setting the configuration above? My searching around on the net didn't get me any solution that I can use instead
I
had to
restore vhosts.conf back.
Doesn't vhosts.conf have written examples of how to add more virtual hosts? IIRC, there should be. It is also possible to use "Include" directive to add virtual hosts based on files:
Include /path/to/some/files/*.cf or such thing...
The only difference between Apache on Unix and Windows should be the way paths are specified, no?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f...
------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
participants (4)
-
Kennedy Kairaria
-
Odhiambo Washington
-
ukuta ken
-
victor yegon