I used the guide at http://www.howtoforge.com/apache_reverse_proxy_ispconfig and seem to be having a little trouble. I beleive i had it workign when i initially set up the server but i had to change things back because i wasnt ready for it at the time. so when i enable the packages in the first step it says they are already enabled. whenever i restart apache i get these warnings Code: # /etc/init.d/apache2 restart * Forcing reload of apache 2.0 web server... [Thu Jul 05 13:46:41 2007] [warn] module proxy_http_module is already loaded, skipping [Thu Jul 05 13:46:42 2007] [warn] module proxy_http_module is already loaded, skipping [ ok ] but besides that everything else seems to be fine as far as setup is concerned. I have dns at godaddy pointing to my server for server1.mysite.com. and i used server1.mysite.com the whole way through this tutorial. when i go there i get the normal shared ip page. any ideas on what to check. I know there isnt much to the tutorial, i figured it was something stupid so i went over everything a 2nd time and couldnt find the mistake i made. Thanks
It looks as you loaded proxy_http_module twice in your apache configuration. Just remove one of the load statements for this module.
Would i be looking in "vi /etc/apache2/apache2.conf" I didnt see anything in there 2 times, what exactly would i be looking for "include /etc/apache2/proxy_http_module"? Would this make it not work?
What are the outputs of Code: ls -la /etc/apache2/mods-available and Code: ls -la /etc/apache2/mods-enabled ?
Code: total 224 drwxr-xr-x 2 root root 4096 2007-06-28 21:25 . drwxr-xr-x 9 root root 4096 2007-07-06 08:13 .. -rw-r--r-- 1 root root 66 2006-07-26 14:01 actions.load -rw-r--r-- 1 root root 60 2006-07-26 14:01 asis.load -rw-r--r-- 1 root root 70 2006-07-26 14:01 auth_anon.load -rw-r--r-- 1 root root 68 2006-07-26 14:01 auth_dbm.load -rw-r--r-- 1 root root 74 2006-07-26 14:01 auth_digest.load -rw-r--r-- 1 root root 130 2006-07-26 14:01 auth_ldap.load -rw-r--r-- 1 root root 62 2006-07-26 14:01 cache.load -rw-r--r-- 1 root root 70 2006-07-26 14:01 cern_meta.load -rw-r--r-- 1 root root 61 2006-07-26 14:01 cgid.conf -rw-r--r-- 1 root root 60 2006-07-26 14:01 cgid.load -rw-r--r-- 1 root root 58 2007-06-28 21:25 cgi.load -rw-r--r-- 1 root root 58 2007-06-28 21:25 cgi.load.28-06-07_21-24-58 -rw-r--r-- 1 root root 37 2006-07-26 14:01 dav_fs.conf -rw-r--r-- 1 root root 64 2006-07-26 14:01 dav_fs.load -rw-r--r-- 1 root root 58 2006-07-26 14:01 dav.load -rw-r--r-- 1 root root 66 2006-07-26 14:01 deflate.load -rw-r--r-- 1 root root 72 2006-07-26 14:01 disk_cache.load -rw-r--r-- 1 root root 66 2006-07-26 14:01 expires.load -rw-r--r-- 1 root root 72 2006-07-26 14:01 ext_filter.load -rw-r--r-- 1 root root 72 2006-07-26 14:01 file_cache.load -rw-r--r-- 1 root root 66 2006-07-26 14:01 headers.load -rw-r--r-- 1 root root 60 2006-07-26 14:01 imap.load -rw-r--r-- 1 root root 66 2007-06-28 21:25 include.load -rw-r--r-- 1 root root 66 2007-06-28 21:25 include.load.28-06-07_21-24-58 -rw-r--r-- 1 root root 60 2006-07-26 14:01 info.load -rw-r--r-- 1 root root 60 2006-07-26 14:01 ldap.load -rw-r--r-- 1 root root 70 2006-07-26 14:01 mem_cache.load -rw-r--r-- 1 root root 85 2006-07-26 14:01 mime_magic.conf -rw-r--r-- 1 root root 72 2006-07-26 14:01 mime_magic.load -rw-r--r-- 1 root root 135 2007-06-28 21:25 php5.conf -rw-r--r-- 1 root root 135 2007-06-28 21:25 php5.conf.28-06-07_21-24-58 -rw-r--r-- 1 root root 59 2007-06-28 21:25 php5.load -rw-r--r-- 1 root root 59 2007-06-28 21:25 php5.load.28-06-07_21-24-58 -rw-r--r-- 1 root root 840 2006-07-26 14:01 proxy.conf -rw-r--r-- 1 root root 78 2006-07-26 14:01 proxy_connect.load -rw-r--r-- 1 root root 70 2006-07-26 14:01 proxy_ftp.load -rw-r--r-- 1 root root 72 2006-07-26 14:01 proxy_http.load -rw-r--r-- 1 root root 316 2006-07-26 14:01 proxy.load -rw-r--r-- 1 root root 66 2007-06-28 21:25 rewrite.load -rw-r--r-- 1 root root 66 2007-06-28 21:25 rewrite.load.28-06-07_21-24-58 -rw-r--r-- 1 root root 66 2006-07-26 14:01 speling.load -rw-r--r-- 1 root root 3545 2007-06-28 21:25 ssl.conf -rw-r--r-- 1 root root 3545 2007-06-28 21:25 ssl.conf.28-06-07_21-24-58 -rw-r--r-- 1 root root 58 2007-06-28 21:25 ssl.load -rw-r--r-- 1 root root 58 2007-06-28 21:25 ssl.load.28-06-07_21-24-58 -rw-r--r-- 1 root root 64 2007-06-28 21:25 suexec.load -rw-r--r-- 1 root root 64 2007-06-28 21:25 suexec.load.28-06-07_21-24-58 -rw-r--r-- 1 root root 70 2006-07-26 14:01 unique_id.load -rw-r--r-- 1 root root 244 2007-06-28 21:25 userdir.conf -rw-r--r-- 1 root root 244 2007-06-28 21:25 userdir.conf.28-06-07_21-24-58 -rw-r--r-- 1 root root 66 2007-06-28 21:25 userdir.load -rw-r--r-- 1 root root 66 2007-06-28 21:25 userdir.load.28-06-07_21-24-58 -rw-r--r-- 1 root root 70 2006-07-26 14:01 usertrack.load -rw-r--r-- 1 root root 74 2006-07-26 14:01 vhost_alias.load and Code: total 8 drwxr-xr-x 2 root root 4096 2007-06-28 21:31 . drwxr-xr-x 9 root root 4096 2007-07-06 08:13 .. lrwxrwxrwx 1 root root 36 2007-06-28 20:57 cgi.load -> /etc/apache2/mods-available/cgi.load lrwxrwxrwx 1 root root 40 2007-06-28 21:00 include.load -> /etc/apache2/mods-available/include.load lrwxrwxrwx 1 root root 37 2007-06-28 20:58 php5.conf -> /etc/apache2/mods-available/php5.conf lrwxrwxrwx 1 root root 37 2007-06-28 20:58 php5.load -> /etc/apache2/mods-available/php5.load lrwxrwxrwx 1 root root 38 2007-06-28 21:31 proxy.conf -> /etc/apache2/mods-available/proxy.conf lrwxrwxrwx 1 root root 43 2007-06-28 21:31 proxy_http.load -> /etc/apache2/mods-available/proxy_http.load lrwxrwxrwx 1 root root 38 2007-06-28 21:31 proxy.load -> /etc/apache2/mods-available/proxy.load lrwxrwxrwx 1 root root 40 2007-06-28 21:00 rewrite.load -> /etc/apache2/mods-available/rewrite.load lrwxrwxrwx 1 root root 36 2007-06-28 21:00 ssl.conf -> /etc/apache2/mods-available/ssl.conf lrwxrwxrwx 1 root root 36 2007-06-28 21:00 ssl.load -> /etc/apache2/mods-available/ssl.load lrwxrwxrwx 1 root root 39 2007-06-28 21:00 suexec.load -> /etc/apache2/mods-available/suexec.load lrwxrwxrwx 1 root root 40 2007-06-28 20:57 userdir.conf -> /etc/apache2/mods-available/userdir.conf lrwxrwxrwx 1 root root 40 2007-06-28 20:57 userdir.load -> /etc/apache2/mods-available/userdir.load
What's in /etc/apache2/mods-available/proxy_http.load, /etc/apache2/mods-available/proxy.load, and /etc/apache2/mods-available/proxy.conf?
Code: LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so Code: LoadModule cache_module /usr/lib/apache2/modules/mod_cache.so LoadModule disk_cache_module /usr/lib/apache2/modules/mod_disk_cache.so LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so Code: <IfModule mod_proxy.c> #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email. ProxyRequests Off <Proxy *> Order deny,allow Deny from all #Allow from .your_domain.com </Proxy> # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block ProxyVia On # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) CacheRoot "/var/cache/apache2/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 # Again, you probably should change this. #NoCache a_domain.com another_domain.edu joes.garage_sale.com </IfModule> Thanks again for taking a look at this!
Please comment out or delete the line Code: LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so in /etc/apache2/mods-available/proxy.load and restart Apache.
Ok that definately fixed the restarting warnings with apache. but when i go to server1.mysite.com it still wont forward me to the ispconfig page it takes me to the shared ip page here is the code in the apache2.conf exactly as it is. Code: NameVirtualHost * <VirtualHost *> ServerName server1.snippetcreator.com DocumentRoot /var/www/ ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://server1.snippetcreator.com:81/ ProxyPassReverse / http://server1.snippetcreator.com:81/ </VirtualHost> # Include the virtual host configurations: Include /etc/apache2/sites-enabled/ <Directory /var/www/sharedip> Options +Includes -Indexes AllowOverride None AllowOverride Indexes AuthConfig Limit FileInfo Order allow,deny Allow from all <Files ~ "^\.ht"> Deny from all </Files> </Directory> and here is the code in /home/admispconfig/ispconfig/lib/config.inc.php Code: //if(isset($_SERVER['HTTP_HOST'])){ // $go_info["server"]["server_url"] = 'http://'.$_SERVER['HTTP_HOST']; //} else { $go_info["server"]["server_url"] = "http://server1.snippetcreator.com:81"; //} Am i overlooking something stupid here, this isnt that complicated.
It must be PHP: //if(isset($_SERVER['HTTP_HOST'])){ // $go_info["server"]["server_url"] = 'http://'.$_SERVER['HTTP_HOST']; //} else { $go_info["server"]["server_url"] = "http://server1.snippetcreator.com"; //} instead. What's the output of Code: httpd -t ? Any errors in Apache's error log?
Code: Syntax OK -I made the change to remove the port at the end, That didnt work. -Does this need to be a site thats set up or another cname or what....How should ispconfig be set up for this is there is any settings...or should there be nothing about this hostname in ispconfig? -I will be checking the log shortly and posting the results. Thanks
Please double-check all your settings that they are exactly as shown in the tutorial. Maybe you've made a typo somewhere.