[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Apache2 Manhattan Virtual Classroom



Simo,
Well I have made all the changed you informed me of and restarted Apache 2,
and yep you guessed it, it still does not find manhat-bin/doorstep. I can
type in http://franklin.pctechhelp.net and it immediately jumps to the
apache2-default site, so it is obvious by this the apache 2 services are
working, it just does not want to serve manhat.Any more ideas before I
decide to finally "through in the towel"?
Thanks,

Cary Pembleton
 

-----Original Message-----
From: Simo Kauppi [mailto:swk@nic.fi] 
Sent: Tuesday, August 15, 2006 1:02 AM
To: Cary Pembleton
Subject: Re: Apache2 Manhattan Virtual Classroom

On Mon, Aug 14, 2006 at 07:38:04PM -0400, Cary Pembleton wrote:
> Simo,

Good work Cary, you are almost there :)

There are four things to change...
One in the /etc/hosts
One in the /etc/apache2/sites-available/mydefault
Two in the /etc/apache2/sites-available/manhat

Please find the corrections below. Remember to restart apache after the
changes.

After the corrections point your browser to
http://franklin.pctechhelp.net/manhat-bin/doorstep

> Here are all the present configurations in Apache 2 sites-enabled and 
> site-available.
> I have an entry in the hosts file which is;
> 127.0.0.1       localhost.localdomain   localhost
> 69.40.134.205   Franklin.pctechhelp.net Franklin
                  ^                       ^
Use all lowercase letters just to be on the safe side! I.e.
69.40.134.205   franklin.pctechhelp.net franklin

> 
> # The following lines are desirable for IPv6 capable hosts
> ::1     ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
> 
> I have an entry in ports.conf;
> Listen 69.40.134.205:80

Good, that is correct.

> Here is the configs of mydefault;
> NameVirtualHost franklin.pctechhelp.net:80
                  ^^^^^^^^^^^^^^^^^^^^^^^ Change that to NameVirtualHost
69.40.134.205:80


> <VirtualHost 69.40.134.205:80>
> 	ServerAdmin support@pctechhelp.nett
> 	
> 	DocumentRoot /var/www/
> 	<Directory />
> 		Options FollowSymLinks
> 		AllowOverride None
> 	</Directory>
> 	<Directory /var/www/>
> 		Options Indexes FollowSymLinks MultiViews
> 		AllowOverride None
> 		Order allow,deny
> 		allow from all
> 		# This directive allows us to have apache2's default start
page
>                 # in /apache2-default/, but still have / go to the 
> right place
> 		RedirectMatch ^/$ /apache2-default/
> 	</Directory>
> 
> 	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> 	<Directory "/usr/lib/cgi-bin">
> 		AllowOverride None
> 		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> 		Order allow,deny
> 		Allow from all
> 	</Directory>
> 
> 	ErrorLog /var/log/apache2/error.log
> 
> 	# Possible values include: debug, info, notice, warn, error, crit,
> 	# alert, emerg.
> 	LogLevel warn
> 
> 	CustomLog /var/log/apache2/access.log combined
> 	ServerSignature On
> 
>     Alias /doc/ "/usr/share/doc/"
>     <Directory "/usr/share/doc/">
>         Options Indexes MultiViews FollowSymLinks
>         AllowOverride None
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.0/255.0.0.0 ::1/128
>     </Directory>
> 
> </VirtualHost>
> 
> Here is the config from 000-mydefault
> NameVirtualHost franklin.pctechhelp.net:80 <VirtualHost 
> 69.40.134.205:80>
> 	ServerAdmin support@pctechhelp.nett
> 	
> 	DocumentRoot /var/www/
> 	<Directory />
> 		Options FollowSymLinks
> 		AllowOverride None
> 	</Directory>
> 	<Directory /var/www/>
> 		Options Indexes FollowSymLinks MultiViews
> 		AllowOverride None
> 		Order allow,deny
> 		allow from all
> 		# This directive allows us to have apache2's default start
page
>                 # in /apache2-default/, but still have / go to the 
> right place
> 		RedirectMatch ^/$ /apache2-default/
> 	</Directory>
> 
> 	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> 	<Directory "/usr/lib/cgi-bin">
> 		AllowOverride None
> 		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> 		Order allow,deny
> 		Allow from all
> 	</Directory>
> 
> 	ErrorLog /var/log/apache2/error.log
> 
> 	# Possible values include: debug, info, notice, warn, error, crit,
> 	# alert, emerg.
> 	LogLevel warn
> 
> 	CustomLog /var/log/apache2/access.log combined
> 	ServerSignature On
> 
>     Alias /doc/ "/usr/share/doc/"
>     <Directory "/usr/share/doc/">
>         Options Indexes MultiViews FollowSymLinks
>         AllowOverride None
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.0/255.0.0.0 ::1/128
>     </Directory>
> 
> </VirtualHost>
> 
> 
> Here is the config from 010-manhat
> #
> #franklin.pctechhelp.net/manhat (/etc/apache2/sites-available/manhat)
> #
> <VirtualHost franklin.pctechhelp.net:80>
               ^^^^^^^^^^^^^^^^^^^^^^^
Change that to
<VirtualHost 69.40.134.205:80>

And add the ServerName directive!!!!!!!
I.e.
ServerName franklin.pctechhelp.net

> 	DocumentRoot /home/manhat
>         #BIN Directory	
> 	ScriptAlias /manhat-bin/ /home/manhat/manhat-3.1.0/bin/ <Directory 
> "/home/manhat/manhat-3.1.0/bin/">
> 	AllowOverride None
> 	Options +ExecCGI -Includes
> 	Order allow,deny
> 	Allow from all
> </Directory>
> 	#SBIN Directory
> 	ScriptAlias /manhat-sbin/ /home/manhat/manhat-3.1.0/sbin/ <Directory

> "/home/manhat/manhat-3.1.0/sbin/">
> 	AllowOverride None
> 	Options +ExecCGI -Includes
> 	Order allow,deny
> 	Allow from all
> </Directory>
> 	#Images Directory
> 	Alias /manhat-images/ /home/manhat/manhat-3.1.0/images <Directory 
> "/home/manhat/manhat-3.1.0/images">
> 	Options FollowSymLinks
> 	AllowOverride none
> 	Allow from all
> </Directory>
> 	CustomLog /var/log/apache2/manhat-access.log combined
> 	ErrorLog /var/log/apache2/manhat-error.log
> 	#LogLevel can be: debug, info, notice, warn, error, crit, alert or 
> emerg
> 	LogLevel warn
> </VirtualHost>
> 
> 
> Here is the config from default;
> NameVirtualHost *
> <VirtualHost *>
> 	ServerAdmin webmaster@localhost
> 	
> 	DocumentRoot /var/www/
> 	<Directory />
> 		Options FollowSymLinks
> 		AllowOverride None
> 	</Directory>
> 	<Directory /var/www/>
> 		Options Indexes FollowSymLinks MultiViews
> 		AllowOverride None
> 		Order allow,deny
> 		allow from all
> 		# This directive allows us to have apache2's default start
page
>                 # in /apache2-default/, but still have / go to the 
> right place
> 		RedirectMatch ^/$ /apache2-default/
> 	</Directory>
> 
> 	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> 	<Directory "/usr/lib/cgi-bin">
> 		AllowOverride None
> 		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> 		Order allow,deny
> 		Allow from all
> 	</Directory>
> 
> 	ErrorLog /var/log/apache2/error.log
> 
> 	# Possible values include: debug, info, notice, warn, error, crit,
> 	# alert, emerg.
> 	LogLevel warn
> 
> 	CustomLog /var/log/apache2/access.log combined
> 	ServerSignature On
> 
>     Alias /doc/ "/usr/share/doc/"
>     <Directory "/usr/share/doc/">
>         Options Indexes MultiViews FollowSymLinks
>         AllowOverride None
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.0/255.0.0.0 ::1/128
>     </Directory>
> 
> </VirtualHost>
> 
> Here is the config from manhat;
> #
> #franklin.pctechhelp.net/manhat (/etc/apache2/sites-available/manhat)
> #
> <VirtualHost franklin.pctechhelp.net:80>
> 	DocumentRoot /home/manhat
>         #BIN Directory	
> 	ScriptAlias /manhat-bin/ /home/manhat/manhat-3.1.0/bin/ <Directory 
> "/home/manhat/manhat-3.1.0/bin/">
> 	AllowOverride None
> 	Options +ExecCGI -Includes
> 	Order allow,deny
> 	Allow from all
> </Directory>
> 	#SBIN Directory
> 	ScriptAlias /manhat-sbin/ /home/manhat/manhat-3.1.0/sbin/ <Directory

> "/home/manhat/manhat-3.1.0/sbin/">
> 	AllowOverride None
> 	Options +ExecCGI -Includes
> 	Order allow,deny
> 	Allow from all
> </Directory>
> 	#Images Directory
> 	Alias /manhat-images/ /home/manhat/manhat-3.1.0/images <Directory 
> "/home/manhat/manhat-3.1.0/images">
> 	Options FollowSymLinks
> 	AllowOverride none
> 	Allow from all
> </Directory>
> 	CustomLog /var/log/apache2/manhat-access.log combined
> 	ErrorLog /var/log/apache2/manhat-error.log
> 	#LogLevel can be: debug, info, notice, warn, error, crit, alert or 
> emerg
> 	LogLevel warn
> </VirtualHost>
> 
> 
> There must be something here I am missing, but I just do not see it. I 
> also have a master domain created in Bind 9 for 
> franklin.pctechhelp.net It has the appropriate host records 
> www,mail,mx,pop3 and smtp all resolve to
> 69.40.134.205 .
> I am not going to fool with manhat as a sub domain, I am just going to 
> use www.franklin.pctechhelp.net or franklin.pctechhelp.net. Apache 2 
> should be able to sort out Name Based Hosts just as well as IIS 5.0, 
> in this Microsoft has Apache smoked! Please let me know if you see
anything I am missing here.
> I have had some very terrible events here this week and it is only Monday.
> :o(
> Thanks,
> Cary



Reply to: