Noob can"t display web site
Noob can"t display web site
am 04.09.2007 07:40:59 von OH_whirlybird
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
DocumentRoot /var/www/Web_Server
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
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/"
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
Re: Noob can"t display web site
am 04.09.2007 08:26:20 von tom lehmann
On Tue, 04 Sep 2007 05:40:59 -0000, OH_whirlybird
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
Re: Noob can"t display web site
am 04.09.2007 08:52:19 von OH_whirlybird
On Sep 4, 2:26 am, tom lehmann wrote:
> On Tue, 04 Sep 2007 05:40:59 -0000, OH_whirlybird
> 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.
Re: Noob can"t display web site
am 04.09.2007 11:21:15 von shimmyshack
On 4 Sep, 06:40, OH_whirlybird 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
>
>
> DocumentRoot /var/www/Web_Server
>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
>
>
> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>
> AllowOverride None
> Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
>
>
> 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/"
>
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> Allow from 127.0.0.0/255.0.0.0 ::1/128
>
>
where is
NameVirtualHost www.wingandrotors.com
ServerName www.wingandrotors.com
.....
coming from?
could you try
NameVirtualHost *
ServerName localhost
ServerName www.wingandrotors.com
.....
instead. Look up the docs for vhosts on the apache 2 site.
Re: Noob can"t display web site
am 04.09.2007 21:35:13 von OH_whirlybird
On Sep 4, 5:21 am, shimmyshack wrote:
> On 4 Sep, 06:40, OH_whirlybird 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
> >
>
> > DocumentRoot /var/www/Web_Server
> >
> > Options Indexes FollowSymLinks MultiViews
> > AllowOverride None
> > Order allow,deny
> > allow from all
> >
>
> > ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> >
> > AllowOverride None
> > Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> > Order allow,deny
> > Allow from all
> >
>
> > 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/"
> >
> > Options Indexes MultiViews FollowSymLinks
> > AllowOverride None
> > Order deny,allow
> > Deny from all
> > Allow from 127.0.0.0/255.0.0.0 ::1/128
> >
> >
>
> where is
>
> NameVirtualHostwww.wingandrotors.com
> ServerNamewww.wingandrotors.com
>
> ....
>
> coming from?
>
> could you try
>
> NameVirtualHost *
> ServerName localhost
>
> 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.
Re: Noob can"t display web site
am 04.09.2007 22:07:51 von Mark Taylor
OH_whirlybird wrote in
news:1188934513.198608.177410@57g2000hsv.googlegroups.com:
> On Sep 4, 5:21 am, shimmyshack wrote:
>> On 4 Sep, 06:40, OH_whirlybird 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
>> >
>>
>> > DocumentRoot /var/www/Web_Server
>> >
>> > Options Indexes FollowSymLinks MultiViews
>> > AllowOverride None
>> > Order allow,deny
>> > allow from all
>> >
>>
>> > ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>> >
>> > AllowOverride None
>> > Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
>> > Order allow,deny
>> > Allow from all
>> >
>>
>> > 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/"
>> >
>> > Options Indexes MultiViews FollowSymLinks
>> > AllowOverride None
>> > Order deny,allow
>> > Deny from all
>> > Allow from 127.0.0.0/255.0.0.0 ::1/128
>> >
>> >
>>
>> where is
>>
>> NameVirtualHostwww.wingandrotors.com
>> ServerNamewww.wingandrotors.com
>>
>> ....
>>
>> coming from?
>>
>> could you try
>>
>> NameVirtualHost *
>> ServerName localhost
>>
>> 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 =----
Re: Noob can"t display web site
am 04.09.2007 22:30:04 von shimmyshack
On Sep 4, 8:35 pm, OH_whirlybird wrote:
> On Sep 4, 5:21 am, shimmyshack wrote:
>
>
>
> > On 4 Sep, 06:40, OH_whirlybird 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
> > >
>
> > > DocumentRoot /var/www/Web_Server
> > >
> > > Options Indexes FollowSymLinks MultiViews
> > > AllowOverride None
> > > Order allow,deny
> > > allow from all
> > >
>
> > > ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> > >
> > > AllowOverride None
> > > Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> > > Order allow,deny
> > > Allow from all
> > >
>
> > > 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/"
> > >
> > > Options Indexes MultiViews FollowSymLinks
> > > AllowOverride None
> > > Order deny,allow
> > > Deny from all
> > > Allow from 127.0.0.0/255.0.0.0 ::1/128
> > >
> > >
>
> > where is
>
> > NameVirtualHostwww.wingandrotors.com
> > ServerNamewww.wingandrotors.com
> >
> > ....
>
> > coming from?
>
> > could you try
>
> > NameVirtualHost *
> > ServerName localhost
> >
> > 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.