Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 23rd August 2010, 17:17
stolenpants stolenpants is offline
Junior Member
 
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

restarted apache, no dice.

been rebooting the entire server every step of the way just to be safe every time I make a change to something.

I'm not sure what my options are here besides reformatting? It sounds like we're just taking shots in the dark here.
Reply With Quote
Sponsored Links
  #12  
Old 23rd August 2010, 17:23
stolenpants stolenpants is offline
Junior Member
 
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's the vhost

Quote:
<Directory /var/www/mysite.org>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<VirtualHost 216.246.97.107:80>
DocumentRoot /var/www/mysite.org/web

ServerName mysite.org
ServerAlias www.mysite.org
ServerAdmin webmaster@mysite.org

ErrorLog /var/log/ispconfig/httpd/mysite.org/error.log

ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html

<Directory /var/www/mysite.org/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>
<Directory /var/www/clients/client0/web1/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>

# cgi enabled
<Directory /var/www/clients/client0/web1/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client0/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# suexec enabled
SuexecUserGroup web1 client0
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@mysite.org"
php_admin_value upload_tmp_dir /var/www/clients/client0/web1/tmp
php_admin_value session.save_path /var/www/clients/client0/web1/tmp
#php_admin_value open_basedir /var/www/clients/client0/web1:/usr/share/php5


</VirtualHost>



<IfModule mod_ssl.c>
################################################## #########
# SSL Vhost
################################################## #########

<VirtualHost 216.246.97.107:443>
DocumentRoot /var/www/mysite.org/web

ServerName mysite.org
ServerAlias www.mysite.org
ServerAdmin webmaster@mysite.org

ErrorLog /var/log/ispconfig/httpd/mysite.org/error.log

ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html

SSLEngine on
SSLCertificateFile /var/www/clients/client0/web1/ssl/mysite.org.crt
SSLCertificateKeyFile /var/www/clients/client0/web1/ssl/mysite.org.key

<Directory /var/www/mysite.org/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>
<Directory /var/www/clients/client0/web1/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>

# cgi enabled
<Directory /var/www/clients/client0/web1/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client0/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
# suexec enabled
SuexecUserGroup web1 client0
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@mysite.org"
php_admin_value upload_tmp_dir /var/www/clients/client0/web1/tmp
php_admin_value session.save_path /var/www/clients/client0/web1/tmp
#php_admin_value open_basedir /var/www/clients/client0/web1:/usr/share/php5


</VirtualHost>
</IfModule>
Reply With Quote
  #13  
Old 23rd August 2010, 17:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,678
Thanks: 819
Thanked 5,318 Times in 4,171 Posts
Default

The vhost file is ok, it does not contain anything that may cause a redirect. The redirect must be defined somwhere else. Have you defined some kind of redirect at your domain registry?

Please post the real domain of your site so that I can test it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #14  
Old 23rd August 2010, 17:36
stolenpants stolenpants is offline
Junior Member
 
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Fixed.

Ok here's what happened. When I started messing with the .vhost file I did this

cp mysite.org.vhost mysite.org.backup

I wasn't aware that .vhost file was overwritten by crons.

I also wasn't aware that apache would go straight for the file that said .backup instead of the one that said .vhost I suppose I was thinking the file extensions mattered. Bah!

Thanks for the help.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect Loop geekrohit Installation/Configuration 7 25th June 2010 18:11
Redirect Wireless Client to Late-Pay Notice giganet Server Operation 1 19th June 2009 08:57
Infinite loop mrlewis HOWTO-Related Questions 1 8th October 2007 17:33
Infinite bounce loop confuzzled Installation/Configuration 1 20th March 2006 20:25
Mandriva 2006 : infinite loop mails ! Aargh dreamed Installation/Configuration 1 13th February 2006 17:01


All times are GMT +2. The time now is 02:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.