<div dir="ltr">First off, please go to the Drupal Handbook and read the section on Clean URLs: <a href="http://drupal.org/node/15365">http://drupal.org/node/15365</a><br><br>&quot;Take a deep breath&quot; 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 href="http://myproject.example.com">myproject.example.com</a><br>&nbsp; DocumentRoot /home/myproject/html<br>&nbsp; &lt;Directory &quot;/home/myproject/html&quot;&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 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 &quot;/var/www/html/gn-qa maps to /home/myname&quot;?<br><br><div class="gmail_quote">On Mon, Jul 21, 2008 at 1:21 AM, Steve Edwards &lt;<a 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 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&#39;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 &quot;The requested URL /xxxxx was not found on this server.&quot; 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 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 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&#39;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 href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>&gt;<br>
To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
</div><div><div></div><div class="Wj3C7c">References: &lt;<a href="mailto:4882D8FC.7080502@comcast.net">4882D8FC.7080502@comcast.net</a>&gt; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com">20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com</a>&gt; &lt;<a href="mailto:4882E808.2040507@comcast.net">4882E808.2040507@comcast.net</a>&gt;<br>

&lt;<a href="mailto:20080720074151.138973hgc0qlqi8s@illyria.philipnet.com">20080720074151.138973hgc0qlqi8s@illyria.philipnet.com</a>&gt;<br>
<br>
OK, it&#39;s a collocated box, and I got root access to it. &nbsp;Where do I find the Apache config files? &nbsp;I&#39;ve been poking around and<br>
haven&#39;t found them yet.<br>
<br>
Steve<br>
<br>
<a href="mailto:philip@philipnet.com">philip@philipnet.com</a> wrote:<br>
&gt; Hi Steve,<br>
&gt;<br>
&gt; If it&#39;s not your client, then it&#39;s the server.<br>
&gt; I&#39;ve used hosting companies before where they won&#39;t show the .htaccess<br>
&gt; file (or any file starting with &#39;.&#39;) 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&#39;t allow .htaccess files.<br>
&gt;<br>
&gt; Regards.<br>
&gt;<br>
&gt; Philipnet.<br>
&gt;<br>
&gt; Quoting &quot;Steve Edwards&quot; &lt;<a href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>&gt;:<br>
&gt;<br>
&gt;&gt; I&#39;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&#39;t think it is there is because none of my links<br>
&gt;&gt; work. &nbsp;I&#39;m using clean URLs and the home page shows fine, but<br>
&gt;&gt; every link I click on gives the &quot;URL /xxxxx not found on this<br>
&gt;&gt; server&quot; error message.<br>
&gt;&gt;<br>
&gt;&gt; I can&#39;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&#39;t even there in the<br>
&gt;&gt; first place.<br>
&gt;&gt;<br>
&gt;&gt; Steve<br>
&gt;&gt;<br>
&gt;&gt; <a href="mailto:philip@philipnet.com">philip@philipnet.com</a> wrote:<br>
&gt;&gt;&gt; Quoting &quot;Steve Edwards&quot; &lt;<a href="mailto:killshot91@comcast.net">killshot91@comcast.net</a>&gt;:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I&#39;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&#39;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&#39;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 &#39;.&#39; is considered a<br>
&gt;&gt;&gt; hidden file - i.e. a file that&#39;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&#39;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 &quot;/location/on/remote/server/to/drupal/installation&quot;&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></div><div class="Wj3C7c">&gt;&gt; [ Drupal support list | <a 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 href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br></div>