Noob can't display web site

This is a discussion on Noob can't display web site within the Apache Web Server forums, part of the Web Server and Related Forums category; I am so darn close.... I finally have Apache2 on Ubuntu setup to publish on the web. The problem is, ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-04-2007
OH_whirlybird
 
Posts: n/a
Default Noob can't display web site

I am so darn close....

I finally have Apache2 on Ubuntu setup to publish on the web. The
problem is, when I type in my URL it goes to my root directory instead
of the directory setup for my server. Now if I click through the
directory tree on web site I can access the correct page. I have my /
etc/apache2/sites-enabled/default set to point to the correct
directory...but it still won't.

Here's a copy of how it's setup:


NameVirtualHost www.wingandrotors.com
ServerName www.wingandrotors.com
<VirtualHost www.wingandrotors.com>

DocumentRoot /var/www/Web_Server
<Directory /var/www/Web_Server>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</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 Off

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>

  #2 (permalink)  
Old 09-04-2007
tom lehmann
 
Posts: n/a
Default Re: Noob can't display web site

On Tue, 04 Sep 2007 05:40:59 -0000, OH_whirlybird <gjolah@gmail.com>
wrote:

Hi,

>I finally have Apache2 on Ubuntu setup to publish on the web. The
>problem is, when I type in my URL it goes to my root directory instead
>of the directory setup for my server.



>Now if I click through the


please disable index-views!

Look into your config-files carefully, for example:
/etc/apache2/sites-available/default

.... or ask anyone who knows what she/he's doing.


Tom


  #3 (permalink)  
Old 09-04-2007
OH_whirlybird
 
Posts: n/a
Default Re: Noob can't display web site

On Sep 4, 2:26 am, tom lehmann <news...@gmx.de> wrote:
> On Tue, 04 Sep 2007 05:40:59 -0000, OH_whirlybird <gjo...@gmail.com>
> wrote:
>
> Hi,
>
> >I finally have Apache2 on Ubuntu setup to publish on the web. The
> >problem is, when I type in my URL it goes to my root directory instead
> >of the directory setup for my server.
> >Now if I click through the

>
> please disable index-views!
>
> Look into your config-files carefully, for example:
> /etc/apache2/sites-available/default
>
> ... or ask anyone who knows what she/he's doing.
>
> Tom


This is what I have in my /etc/apache2/sites-available/default. I
copied the lines for the default and pasted it further in the file
while correcting the directory names. I also have a virtual host for
sql-ledger and it works correctly. I tried what you suggested with no
luck.

  #4 (permalink)  
Old 09-04-2007
shimmyshack
 
Posts: n/a
Default Re: Noob can't display web site

On 4 Sep, 06:40, OH_whirlybird <gjo...@gmail.com> wrote:
> I am so darn close....
>
> I finally have Apache2 on Ubuntu setup to publish on the web. The
> problem is, when I type in my URL it goes to my root directory instead
> of the directory setup for my server. Now if I click through the
> directory tree on web site I can access the correct page. I have my /
> etc/apache2/sites-enabled/default set to point to the correct
> directory...but it still won't.
>
> Here's a copy of how it's setup:
>
> NameVirtualHostwww.wingandrotors.com
> ServerNamewww.wingandrotors.com
> <VirtualHostwww.wingandrotors.com>
>
> DocumentRoot /var/www/Web_Server
> <Directory /var/www/Web_Server>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> </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 Off
>
> 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>


where is

NameVirtualHost www.wingandrotors.com
ServerName www.wingandrotors.com
<VirtualHost www.wingandrotors.com>
.....


coming from?

could you try

NameVirtualHost *
ServerName localhost
<VirtualHost *>
ServerName www.wingandrotors.com
.....


instead. Look up the docs for vhosts on the apache 2 site.

  #5 (permalink)  
Old 09-04-2007
OH_whirlybird
 
Posts: n/a
Default Re: Noob can't display web site

On Sep 4, 5:21 am, shimmyshack <matt.fa...@gmail.com> wrote:
> On 4 Sep, 06:40, OH_whirlybird <gjo...@gmail.com> wrote:
>
>
>
> > I am so darn close....

>
> > I finally have Apache2 on Ubuntu setup to publish on the web. The
> > problem is, when I type in my URL it goes to my root directory instead
> > of the directory setup for my server. Now if I click through the
> > directory tree on web site I can access the correct page. I have my /
> > etc/apache2/sites-enabled/default set to point to the correct
> > directory...but it still won't.

>
> > Here's a copy of how it's setup:

>
> > NameVirtualHostwww.wingandrotors.com
> > ServerNamewww.wingandrotors.com
> > <VirtualHostwww.wingandrotors.com>

>
> > DocumentRoot /var/www/Web_Server
> > <Directory /var/www/Web_Server>
> > Options Indexes FollowSymLinks MultiViews
> > AllowOverride None
> > Order allow,deny
> > allow from all
> > </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 Off

>
> > 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>

>
> where is
>
> NameVirtualHostwww.wingandrotors.com
> ServerNamewww.wingandrotors.com
> <VirtualHostwww.wingandrotors.com>
> ....
>
> coming from?
>
> could you try
>
> NameVirtualHost *
> ServerName localhost
> <VirtualHost *>
> ServerNamewww.wingandrotors.com
> ....
>
> instead. Look up the docs for vhosts on the apache 2 site.


I've tried several different combinations of directives and I keep
getting the same thing...a display of my root directory. It's almost
like the only thing that is happening is my local host is being
renamed to my web site name. It just will not go to my server
directory.

  #6 (permalink)  
Old 09-04-2007
Mark Taylor
 
Posts: n/a
Default Re: Noob can't display web site

OH_whirlybird <gjolah@gmail.com> wrote in
news:1188934513.198608.177410@57g2000hsv.googlegro ups.com:

> On Sep 4, 5:21 am, shimmyshack <matt.fa...@gmail.com> wrote:
>> On 4 Sep, 06:40, OH_whirlybird <gjo...@gmail.com> wrote:
>>
>>
>>
>> > I am so darn close....

>>
>> > I finally have Apache2 on Ubuntu setup to publish on the web. The
>> > problem is, when I type in my URL it goes to my root directory
>> > instead of the directory setup for my server. Now if I click
>> > through the directory tree on web site I can access the correct
>> > page. I have my / etc/apache2/sites-enabled/default set to point
>> > to the correct directory...but it still won't.

>>
>> > Here's a copy of how it's setup:

>>
>> > NameVirtualHostwww.wingandrotors.com
>> > ServerNamewww.wingandrotors.com
>> > <VirtualHostwww.wingandrotors.com>

>>
>> > DocumentRoot /var/www/Web_Server
>> > <Directory /var/www/Web_Server>
>> > Options Indexes FollowSymLinks MultiViews
>> > AllowOverride None
>> > Order allow,deny
>> > allow from all
>> > </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 Off

>>
>> > 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>

>>
>> where is
>>
>> NameVirtualHostwww.wingandrotors.com
>> ServerNamewww.wingandrotors.com
>> <VirtualHostwww.wingandrotors.com>
>> ....
>>
>> coming from?
>>
>> could you try
>>
>> NameVirtualHost *
>> ServerName localhost
>> <VirtualHost *>
>> ServerNamewww.wingandrotors.com
>> ....
>>
>> instead. Look up the docs for vhosts on the apache 2 site.

>
> I've tried several different combinations of directives and I keep
> getting the same thing...a display of my root directory. It's almost
> like the only thing that is happening is my local host is being
> renamed to my web site name. It just will not go to my server
> directory.
>
>


I don't know if your posts to the newsgroups are being displayed
correctly, but I am seeing this...

ServerNamewww.wingandrotors.com

And that just ain't gonna work without a space in the right place.

ServerName www.wingandrotors.com


Then be sure and restart apache when you make changes. Other than that it
might be best to see the entire httpd.conf file. Remember, your main host
is disabled when you use virtual hosts.


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  #7 (permalink)  
Old 09-04-2007
shimmyshack
 
Posts: n/a
Default Re: Noob can't display web site

On Sep 4, 8:35 pm, OH_whirlybird <gjo...@gmail.com> wrote:
> On Sep 4, 5:21 am, shimmyshack <matt.fa...@gmail.com> wrote:
>
>
>
> > On 4 Sep, 06:40, OH_whirlybird <gjo...@gmail.com> wrote:

>
> > > I am so darn close....

>
> > > I finally have Apache2 on Ubuntu setup to publish on the web. The
> > > problem is, when I type in my URL it goes to my root directory instead
> > > of the directory setup for my server. Now if I click through the
> > > directory tree on web site I can access the correct page. I have my /
> > > etc/apache2/sites-enabled/default set to point to the correct
> > > directory...but it still won't.

>
> > > Here's a copy of how it's setup:

>
> > > NameVirtualHostwww.wingandrotors.com
> > > ServerNamewww.wingandrotors.com
> > > <VirtualHostwww.wingandrotors.com>

>
> > > DocumentRoot /var/www/Web_Server
> > > <Directory /var/www/Web_Server>
> > > Options Indexes FollowSymLinks MultiViews
> > > AllowOverride None
> > > Order allow,deny
> > > allow from all
> > > </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 Off

>
> > > 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>

>
> > where is

>
> > NameVirtualHostwww.wingandrotors.com
> > ServerNamewww.wingandrotors.com
> > <VirtualHostwww.wingandrotors.com>
> > ....

>
> > coming from?

>
> > could you try

>
> > NameVirtualHost *
> > ServerName localhost
> > <VirtualHost *>
> > ServerNamewww.wingandrotors.com
> > ....

>
> > instead. Look up the docs for vhosts on the apache 2 site.

>
> I've tried several different combinations of directives and I keep
> getting the same thing...a display of my root directory. It's almost
> like the only thing that is happening is my local host is being
> renamed to my web site name. It just will not go to my server
> directory.


combinations of directives are not needed, you have a very strange
setup, with a virtual host with a doc root, and then some directory
stanzas with config that lie outside this doc root. i would imagine
you plonked that there from the main file, or wrapped the main file
with vhost stuff.
simply check out the docs they have examples.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0