<!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.&nbsp; I go to my site, and I see the Gnu Public
License text.&nbsp; 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 &lt;VirtualHost&gt; for my domain:<br>
<br>
<br>
&lt;VirtualHost *:80&gt;<br>
&nbsp;&nbsp;&nbsp; ServerName cms-qa.goosenetworks.com<br>
&nbsp;&nbsp;&nbsp; DocumentRoot /var/www/html/gn-qa<br>
&lt;/VirtualHost&gt;<br>
<br>
and here's how I modified it:<br>
<br>
&lt;VirtualHost *:80&gt;<br>
&nbsp;&nbsp;&nbsp; ServerName cms-qa.goosenetworks.com<br>
&nbsp;&nbsp;&nbsp; DocumentRoot /var/www/html/gn-qa<br>
&nbsp;&nbsp;&nbsp; &lt;Directory "var/www/html/gn-qa"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride All<br>
&nbsp;&nbsp;&nbsp; &lt;/Directory&gt;<br>
&lt;/VirtualHost&gt;<br>
<br>
There is a DNS setting for cms-qa.goosenetworks.com.&nbsp; 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">&lt;killshot91@comcast.net&gt;</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">&lt;48840EB8.7050501@comcast.net&gt;</a>
<a class="moz-txt-link-rfc2396E" href="mailto:ff176450807210145k7f4d2c9bl4498cbd6fd57d29a@mail.gmail.com">&lt;ff176450807210145k7f4d2c9bl4498cbd6fd57d29a@mail.gmail.com&gt;</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.&nbsp; I added a &lt;Directory&gt; section in
my VirtualHost.&nbsp; I think my problem was that I didn't have quotes
around the directory name.&nbsp; 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>
&lt;VirtualHost *&gt;<br>
&nbsp; ServerName <a moz-do-not-send="true"
 href="http://myproject.example.com">myproject.example.com</a><br>
&nbsp; DocumentRoot /home/myproject/html<br>
&nbsp; &lt;Directory "/home/myproject/html"&gt;<br>
&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks MultiViews<br>
&nbsp;&nbsp;&nbsp; AllowOverride All<br>
&nbsp; &lt;/Directory&gt;<br>
&lt;/VirtualHost&gt;<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 &lt;<a moz-do-not-send="true"
 href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>&gt;
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. &nbsp;I added<br>
the following to the httpd.conf file<br>
    <br>
&lt;IfModule mod_rewrite.c&gt;<br>
&nbsp; RewriteEngine On<br>
&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br>
&nbsp; RewriteCond %{REQUEST_FILENAME} !-d<br>
&nbsp; RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]<br>
&lt;/IfModule&gt;<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. &nbsp;I can get<br>
to each page using the non-clean URLs.<br>
    <br>
I also tried adding to this<br>
    <br>
&lt;VirtualHost *:80&gt;<br>
&nbsp; &nbsp; ServerName <a moz-do-not-send="true"
 href="http://cms-qa.goosenetworks.com" target="_blank">cms-qa.goosenetworks.com</a><br>
&nbsp; &nbsp; DocumentRoot /var/www/html/gn-qa<br>
&lt;/VirtualHost&gt;<br>
    <br>
to get this:<br>
    <br>
&lt;VirtualHost *:80&gt;<br>
&nbsp; &nbsp; ServerName <a moz-do-not-send="true"
 href="http://cms-qa.goosenetworks.com" target="_blank">cms-qa.goosenetworks.com</a><br>
&nbsp; &nbsp; DocumentRoot /var/www/html/gn-qa<br>
&nbsp; &nbsp; &lt;Directory /var/www/html/gn-qa&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp;AllowOverride All<br>
&nbsp; &nbsp; &lt;/Directory&gt;<br>
&lt;/VirtualHost&gt;<br>
    <br>
Now /var/www/html/gn-qa maps to /home/myname. &nbsp;Is /home/myname what
needs to go in &lt;Directory&gt;? &nbsp;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 &lt;<a moz-do-not-send="true"
 href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>&gt;<br>
To: <a moz-do-not-send="true" href="mailto:support@drupal.org">support@drupal.org</a><br>
    </div>
    <div>
    <div class="Wj3C7c">References: &lt;<a moz-do-not-send="true"
 href="mailto:4882D8FC.7080502@comcast.net">4882D8FC.7080502@comcast.net</a>&gt;
&nbsp; &nbsp; &nbsp;&lt;<a moz-do-not-send="true"
 href="mailto:20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com">20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com</a>&gt;
&lt;<a moz-do-not-send="true" href="mailto:4882E808.2040507@comcast.net">4882E808.2040507@comcast.net</a>&gt;<br>
&lt;<a moz-do-not-send="true"
 href="mailto:20080720074151.138973hgc0qlqi8s@illyria.philipnet.com">20080720074151.138973hgc0qlqi8s@illyria.philipnet.com</a>&gt;<br>
    <br>
OK, it's a collocated box, and I got root access to it. &nbsp;Where do I
find the Apache config files? &nbsp;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>
&gt; Hi Steve,<br>
&gt;<br>
&gt; If it's not your client, then it's the server.<br>
&gt; I've used hosting companies before where they won't show the
.htaccess<br>
&gt; file (or any file starting with '.') in a directory listing. In
those<br>
&gt; cases the companies have recommended keeping a local copy of the<br>
&gt; .htaccess or .htpasswd file(s) in case you ever need to amend them.<br>
&gt;<br>
&gt; And what about the Apache configuration?<br>
&gt; Can you confirm that that allows .htaccess files to override the
settings?<br>
&gt; Because of a performance hit when using .htaccess files some hosts<br>
&gt; don't allow .htaccess files.<br>
&gt;<br>
&gt; Regards.<br>
&gt;<br>
&gt; Philipnet.<br>
&gt;<br>
&gt; Quoting "Steve Edwards" &lt;<a moz-do-not-send="true"
 href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>&gt;:<br>
&gt;<br>
&gt;&gt; I'm using FileZilla, and I can see the .htaccess file just
fine on<br>
&gt;&gt; my own server. &nbsp;I can upload and download to and from that<br>
&gt;&gt; server and see the file (and also on other servers) without a
problem.<br>
&gt;&gt;<br>
&gt;&gt; The reason I don't think it is there is because none of my
links<br>
&gt;&gt; work. &nbsp;I'm using clean URLs and the home page shows fine, but<br>
&gt;&gt; every link I click on gives the "URL /xxxxx not found on this<br>
&gt;&gt; server" error message.<br>
&gt;&gt;<br>
&gt;&gt; I can't access the .conf file. &nbsp;My FTP access puts me in the
Drupal<br>
&gt;&gt; root, which is a subdomain. &nbsp;I tried modifying Base_Rewrite,<br>
&gt;&gt; but that does no good since the .htaccess isn't even there in
the<br>
&gt;&gt; first place.<br>
&gt;&gt;<br>
&gt;&gt; Steve<br>
&gt;&gt;<br>
&gt;&gt; <a moz-do-not-send="true" href="mailto:philip@philipnet.com">philip@philipnet.com</a>
wrote:<br>
&gt;&gt;&gt; Quoting "Steve Edwards" &lt;<a moz-do-not-send="true"
 href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>&gt;:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I've been working on a customer site on my server, and
I uploaded it<br>
&gt;&gt;&gt;&gt; to the client server today. &nbsp;The front page displayed
fine,<br>
&gt;&gt;&gt;&gt; but when I click on any links, I get page not found
errors. &nbsp;I'm<br>
&gt;&gt;&gt;&gt; using clean URLs on my server (like I do on every
project), and I<br>
&gt;&gt;&gt;&gt; noticed that the .htaccess file was missing. &nbsp;I
uploaded it twice,<br>
&gt;&gt;&gt;&gt; but when I go to another folder and come back, it's
gone, as if<br>
&gt;&gt;&gt;&gt; I never uploaded it in the first place. &nbsp;I asked the
client about<br>
&gt;&gt;&gt;&gt; it, and they know of nothing that would do that. &nbsp;Has
anybody<br>
&gt;&gt;&gt;&gt; seen this before, or know how to fix it?<br>
&gt;&gt;&gt; Hey Steve,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Under UNIX/Linux any file that starts with a '.' is
considered a<br>
&gt;&gt;&gt; hidden file - i.e. a file that's not normally shown when
you list the<br>
&gt;&gt;&gt; contents of a directory.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; There should be an option on your FTP client to show
hidden files.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Note that even if hidden, the .htaccess file still exists
and should<br>
&gt;&gt;&gt; take effect. However it sounds like it doesn't. Can you
examine/modify<br>
&gt;&gt;&gt; the Apache configuration so that .htaccess file take
effect?<br>
&gt;&gt;&gt; Something like:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &lt;Directory
"/location/on/remote/server/to/drupal/installation"&gt;<br>
&gt;&gt;&gt; &nbsp; &nbsp;Options All<br>
&gt;&gt;&gt; &nbsp; &nbsp;AllowOverride All<br>
&gt;&gt;&gt; &lt;/Directory&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; in the Apache configuration should work.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Philipnet.<br>
&gt;&gt; --<br>
    </div>
    </div>
    <div>
    <div class="Wj3C7c">&gt;&gt; [ Drupal support list | <a
 moz-do-not-send="true" href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a>
]<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<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>