<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Arial">Aaaaaand, as soon as I send this, I
see it isn't working. I go to my site, and I see the Gnu Public
License text. I remove the lines I had entered, and I can get to the
front page, and I'm back to where I started.<br>
<br>
Here is the <VirtualHost> for my domain:<br>
<br>
<br>
<VirtualHost *:80><br>
ServerName cms-qa.goosenetworks.com<br>
DocumentRoot /var/www/html/gn-qa<br>
</VirtualHost><br>
<br>
and here's how I modified it:<br>
<br>
<VirtualHost *:80><br>
ServerName cms-qa.goosenetworks.com<br>
DocumentRoot /var/www/html/gn-qa<br>
<Directory "var/www/html/gn-qa"><br>
AllowOverride All<br>
</Directory><br>
</VirtualHost><br>
<br>
There is a DNS setting for cms-qa.goosenetworks.com. What I meant by "</font></font>/var/www/html/gn-qa
maps to /home/myname" is that if I navigate to <font size="-1"><font
face="Arial">/var/www/html/gn-qa, in something like WinSCP, it takes
me right to /home/500lb, which is my Drupal file root.<br>
<br>
Whenever I add these lines, my links work for a refresh or two, but
then all of a sudden I see the Gnu text.<br>
<br>
Sorry, I've never needed to mess with all this, so it's a bit new to
me, and it doesn't help that I'm already under a time crunch.<br>
<br>
Thanks.<br>
<br>
Steve<br>
</font></font><font size="-1"><font face="Arial"><br>
<br>
<br>
</font></font>-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">Subject: </th>
<td>Re: [support] [Fwd: Re: Disappearing .htaccess File]</td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">Date: </th>
<td>Mon, 21 Jul 2008 07:41:19 -0700</td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">From: </th>
<td>Steve Edwards <a class="moz-txt-link-rfc2396E" href="mailto:killshot91@comcast.net"><killshot91@comcast.net></a></td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:support@drupal.org">support@drupal.org</a></td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">References: </th>
<td><a class="moz-txt-link-rfc2396E" href="mailto:48840EB8.7050501@comcast.net"><48840EB8.7050501@comcast.net></a>
<a class="moz-txt-link-rfc2396E" href="mailto:ff176450807210145k7f4d2c9bl4498cbd6fd57d29a@mail.gmail.com"><ff176450807210145k7f4d2c9bl4498cbd6fd57d29a@mail.gmail.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<font size="-1"><font face="Arial">I read that page and many others,
and I think took so many deep breaths last night that I almost
hyperventilated....<br>
<br>
But, I finally got it to work. I added a <Directory> section in
my VirtualHost. I think my problem was that I didn't have quotes
around the directory name. Once I did that, it worked.<br>
<br>
Thanks.<br>
<br>
Steve<br>
</font></font><br>
Victor Kane wrote:
<blockquote
cite="mid:ff176450807210145k7f4d2c9bl4498cbd6fd57d29a@mail.gmail.com"
type="cite">
<div dir="ltr">First off, please go to the Drupal Handbook and read
the section on Clean URLs: <a moz-do-not-send="true"
href="http://drupal.org/node/15365">http://drupal.org/node/15365</a><br>
<br>
"Take a deep breath" and read the introductory howto article, and carry
that out, and then only if necessary, any special case articles you
feel might help.<br>
<br>
Apart from that (the most important), on the basis of what you are
saying here, you just need to make a VirtualHost entry for each
document root, not for subdirectories.<br>
<br>
The document root is the top-most directory where something like
index.html or index.php can be invoked.<br>
<br>
If I make a directory: /home/myproject/html, where I am thinking of
placing a Drupal virtual host for a project (so I would have
/home/myproject/html/index.php), the following works for me:<br>
<br>
<VirtualHost *><br>
ServerName <a moz-do-not-send="true"
href="http://myproject.example.com">myproject.example.com</a><br>
DocumentRoot /home/myproject/html<br>
<Directory "/home/myproject/html"><br>
Options Indexes FollowSymLinks MultiViews<br>
AllowOverride All<br>
</Directory><br>
</VirtualHost><br>
<br>
Then, we assume that the url <a moz-do-not-send="true"
href="http://myproject.example.com">myproject.example.com</a> either
has an A entry in your DNS zone configuration (configured subdomain) or
temporarily exists in the /etc/hosts file of your client.<br>
<br>
What is your DNS setup? What exactly do you mean when you say
"/var/www/html/gn-qa maps to /home/myname"?<br>
<br>
<div class="gmail_quote">On Mon, Jul 21, 2008 at 1:21 AM, Steve
Edwards <<a moz-do-not-send="true"
href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>>
wrote:<br>
<br>
In the example you give, /var/www/html/gn-qa would need to be the
document root (i.e. index.php would work there).<br>
<br>
Also, you say it is colocation; so, did you install and enable the
Apache mod_rewrite module? That is necessary for clean URLs, as seen in
the Drupal Handbook Documentation page.<br>
<br>
Victor Kane<br>
<a moz-do-not-send="true" href="http://awebfactory.com.ar">http://awebfactory.com.ar</a><br>
<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">That
saga continues...<br>
<br>
I've been trying for a couple hours now to get my clean URLs to work by
modifying httpd.conf, but nothing seems to work. I added<br>
the following to the httpd.conf file<br>
<br>
<IfModule mod_rewrite.c><br>
RewriteEngine On<br>
RewriteCond %{REQUEST_FILENAME} !-f<br>
RewriteCond %{REQUEST_FILENAME} !-d<br>
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]<br>
</IfModule><br>
<br>
and reloaded, but I still get "The requested URL /xxxxx was not found
on this server." for every link I try to go to. I can get<br>
to each page using the non-clean URLs.<br>
<br>
I also tried adding to this<br>
<br>
<VirtualHost *:80><br>
ServerName <a moz-do-not-send="true"
href="http://cms-qa.goosenetworks.com" target="_blank">cms-qa.goosenetworks.com</a><br>
DocumentRoot /var/www/html/gn-qa<br>
</VirtualHost><br>
<br>
to get this:<br>
<br>
<VirtualHost *:80><br>
ServerName <a moz-do-not-send="true"
href="http://cms-qa.goosenetworks.com" target="_blank">cms-qa.goosenetworks.com</a><br>
DocumentRoot /var/www/html/gn-qa<br>
<Directory /var/www/html/gn-qa><br>
AllowOverride All<br>
</Directory><br>
</VirtualHost><br>
<br>
Now /var/www/html/gn-qa maps to /home/myname. Is /home/myname what
needs to go in <Directory>? Also, Do I need quotes around the<br>
directory path/name?<br>
<br>
Thanks.<br>
<br>
Steve (just about to pull out what's left of his hair).<br>
<div class="Ih2E3d"><br>
<br>
-------- Original Message --------<br>
Subject: Re: [support] Disappearing .htaccess File<br>
</div>
<div class="Ih2E3d">Date: Sun, 20 Jul 2008 16:11:02 -0700<br>
From: Steve Edwards <<a moz-do-not-send="true"
href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>><br>
To: <a moz-do-not-send="true" href="mailto:support@drupal.org">support@drupal.org</a><br>
</div>
<div>
<div class="Wj3C7c">References: <<a moz-do-not-send="true"
href="mailto:4882D8FC.7080502@comcast.net">4882D8FC.7080502@comcast.net</a>>
<<a moz-do-not-send="true"
href="mailto:20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com">20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com</a>>
<<a moz-do-not-send="true" href="mailto:4882E808.2040507@comcast.net">4882E808.2040507@comcast.net</a>><br>
<<a moz-do-not-send="true"
href="mailto:20080720074151.138973hgc0qlqi8s@illyria.philipnet.com">20080720074151.138973hgc0qlqi8s@illyria.philipnet.com</a>><br>
<br>
OK, it's a collocated box, and I got root access to it. Where do I
find the Apache config files? I've been poking around and<br>
haven't found them yet.<br>
<br>
Steve<br>
<br>
<a moz-do-not-send="true" href="mailto:philip@philipnet.com">philip@philipnet.com</a>
wrote:<br>
> Hi Steve,<br>
><br>
> If it's not your client, then it's the server.<br>
> I've used hosting companies before where they won't show the
.htaccess<br>
> file (or any file starting with '.') in a directory listing. In
those<br>
> cases the companies have recommended keeping a local copy of the<br>
> .htaccess or .htpasswd file(s) in case you ever need to amend them.<br>
><br>
> And what about the Apache configuration?<br>
> Can you confirm that that allows .htaccess files to override the
settings?<br>
> Because of a performance hit when using .htaccess files some hosts<br>
> don't allow .htaccess files.<br>
><br>
> Regards.<br>
><br>
> Philipnet.<br>
><br>
> Quoting "Steve Edwards" <<a moz-do-not-send="true"
href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>>:<br>
><br>
>> I'm using FileZilla, and I can see the .htaccess file just
fine on<br>
>> my own server. I can upload and download to and from that<br>
>> server and see the file (and also on other servers) without a
problem.<br>
>><br>
>> The reason I don't think it is there is because none of my
links<br>
>> work. I'm using clean URLs and the home page shows fine, but<br>
>> every link I click on gives the "URL /xxxxx not found on this<br>
>> server" error message.<br>
>><br>
>> I can't access the .conf file. My FTP access puts me in the
Drupal<br>
>> root, which is a subdomain. I tried modifying Base_Rewrite,<br>
>> but that does no good since the .htaccess isn't even there in
the<br>
>> first place.<br>
>><br>
>> Steve<br>
>><br>
>> <a moz-do-not-send="true" href="mailto:philip@philipnet.com">philip@philipnet.com</a>
wrote:<br>
>>> Quoting "Steve Edwards" <<a moz-do-not-send="true"
href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>>:<br>
>>><br>
>>>> I've been working on a customer site on my server, and
I uploaded it<br>
>>>> to the client server today. The front page displayed
fine,<br>
>>>> but when I click on any links, I get page not found
errors. I'm<br>
>>>> using clean URLs on my server (like I do on every
project), and I<br>
>>>> noticed that the .htaccess file was missing. I
uploaded it twice,<br>
>>>> but when I go to another folder and come back, it's
gone, as if<br>
>>>> I never uploaded it in the first place. I asked the
client about<br>
>>>> it, and they know of nothing that would do that. Has
anybody<br>
>>>> seen this before, or know how to fix it?<br>
>>> Hey Steve,<br>
>>><br>
>>> Under UNIX/Linux any file that starts with a '.' is
considered a<br>
>>> hidden file - i.e. a file that's not normally shown when
you list the<br>
>>> contents of a directory.<br>
>>><br>
>>> There should be an option on your FTP client to show
hidden files.<br>
>>><br>
>>> Note that even if hidden, the .htaccess file still exists
and should<br>
>>> take effect. However it sounds like it doesn't. Can you
examine/modify<br>
>>> the Apache configuration so that .htaccess file take
effect?<br>
>>> Something like:<br>
>>><br>
>>> <Directory
"/location/on/remote/server/to/drupal/installation"><br>
>>> Options All<br>
>>> AllowOverride All<br>
>>> </Directory><br>
>>><br>
>>> in the Apache configuration should work.<br>
>>><br>
>>> Regards.<br>
>>><br>
>>> Philipnet.<br>
>> --<br>
</div>
</div>
<div>
<div class="Wj3C7c">>> [ Drupal support list | <a
moz-do-not-send="true" href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a>
]<br>
>><br>
><br>
><br>
><br>
<br>
--<br>
[ Drupal support list | <a moz-do-not-send="true"
href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a>
]<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</body>
</html>