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, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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> |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 =---- |
|
|||
|
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. |