https configuration for just one directory for apache2 and ubuntu
===

I have a wordpress site and rails app running on the same server.

basically my httpd.conf is 

    <VirtualHost *:80>
      ServerName www.myapp.com
      DocumentRoot /home/myapp/wordpress    
      <Directory /home/myapp/wordpress>
        AllowOverride all
        Options Indexes FollowSymLinks
      </Directory>
  
      RailsBaseURI /myapp_rails              
      RailsEnv production
      <Directory /home/myapp/wordpress/myapp_rails>   
          Options -MultiViews              
      </Directory>                          
    </VirtualHost>

I set up https based on the docs from ubuntu and it seems to work fine when I move this into my ./sites-available/default-ssh file.  Rails was force to use https in the environment.rb.  But I want to have my wordpress pages on http rather than https, b/c I have ads and a facebook plugin.

I have tried taking out the directory /home/myapp/wordpress, but when I restart the server, I still reach my homepage at https.


	<IfModule mod_ssl.c>
	<VirtualHost _default_:443>
		ServerAdmin admin@myapp.com

		DocumentRoot /home/myapp/wordpress

		<Directory /home/myapp/wordpress/>
			Options Indexes FollowSymLinks MultiViews
			AllowOverride all
			Order allow,deny
			allow from all
		</Directory>

		RailsBaseURI /myapp_rails             
		RailsEnv production
	    <Directory /home/my_app/wordpress/myapp_rails>   
	        Options -MultiViews 
	        AllowOverride 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 ${APACHE_LOG_DIR}/error.log

		LogLevel warn

		CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined

		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>
		SSLEngine on

		SSLCertificateFile    /home/pev/ssl/myapp.com.crt
		SSLCertificateKeyFile /home/pev/ssl/myapp.key
		SSLCertificateChainFile /home/pev/ssl/gd_bundle.crt

		<FilesMatch "\.(cgi|shtml|phtml|php)$">
			SSLOptions +StdEnvVars
		</FilesMatch>
		<Directory /usr/lib/cgi-bin>
			SSLOptions +StdEnvVars
		</Directory>

		BrowserMatch "MSIE [2-6]" \
			nokeepalive ssl-unclean-shutdown \
			downgrade-1.0 force-response-1.0
		# MSIE 7 and newer should be able to use keepalive
		BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

	</VirtualHost>
	</IfModule>
