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