Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 51874 invoked from network); 4 Mar 2005 10:28:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Mar 2005 10:28:48 -0000 Received: (qmail 20556 invoked by uid 500); 4 Mar 2005 10:28:37 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 20539 invoked by uid 500); 4 Mar 2005 10:28:36 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 20525 invoked by uid 99); 4 Mar 2005 10:28:36 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HELO_DYNAMIC_IPADDR2,X_MSMAIL_PRIORITY_HIGH,X_PRIORITY_HIGH X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from 216-55-162-34.infopoint.co.ug (HELO 216-55-162-34.infopoint.co.ug) (216.55.162.34) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Mar 2005 02:28:34 -0800 Received: (qmail 15832 invoked from network); 4 Mar 2005 10:29:48 -0000 Received: from unknown (HELO ?10.0.21.3?) (81.199.24.21) by 216-55-162-34.infopoint.co.ug with SMTP; 4 Mar 2005 10:29:37 -0000 Received: from 127.0.0.1 (AVG SMTP 7.0.300 [266.5.1]); Fri, 04 Mar 2005 13:27:25 +0300 Message-ID: <01e601c520a4$c2639a40$0100a8c0@AMIN> From: "Amin Thakkar" To: References: Date: Fri, 4 Mar 2005 13:27:23 +0300 X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_01E3_01C520BD.E680B6B0" X-Virus-Checked: Checked Subject: Re: [users@httpd] VirtualHost 216.55.162.34:80 X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_01E3_01C520BD.E680B6B0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi My question is simple I have my own server P4 with FedoraCore and Plesk 7.5.2 Control panel. Ex I have hosted site call thinkquestuganda.org after create a site in his directory /home/httpd/vhosts/thinkquestuganda.org/conf it is creating a file call httpd.include I have attached file call httpd.included. In this file you will see scripts VirtualHost 216.55.162.34:80> ServerName stjohnsw.thinkquestuganda.org:80 SuexecUserGroup thinkque psacln ServerAdmin amin@computerland.co.ug DocumentRoot /home/httpd/vhosts/thinkquestuganda.org/subdomains/stjohnsw/httpdocs CustomLog /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/access_log combined ErrorLog /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/error_log ScriptAlias /cgi-bin/ /home/httpd/vhosts/thinkquestuganda.org/subdomains/stjohnsw/cgi-bin/ in this script people have to type http://stjohnsw.thinkquestuganda.org but most of peope type www.stjohnsw.thinkquestuganda.org . I have got email from apache group they told me I put ServerAlias www.stjohnsw.thinkquestuganda.org after modified in httpd.include it is working fine But what I want when ever my client create a subdomain scripts should put it self ServerAlias www.subdomain.site.com I hope you have understood my question. Thank you, Regards Amin ------------------------------------ I don't understand what is the problem. Are you using some application to generate httpd.conf? What is going wrong? Please explain exactly what you want to happen and what is wrong. Your config is mostly OK, but I would suggest a few tips: - You don't need to add the port number onto the domain name in ServerName (stjohnsw.thinkquestuganda.org:80 --> stjohnsw.thinkquestuganda.org). - do you have "NameVirtualHost 216.55.162.34:80" somewhere? You need this for name-based VHs. ----- Original Message ----- From: "Boyle Owen" To: Sent: Friday, March 04, 2005 12:45 PM Subject: RE: [users@httpd] VirtualHost 216.55.162.34:80 > -----Original Message----- > From: Amin Thakkar [mailto:amin@infopoint.co.ug] > Sent: Freitag, 4. M�rz 2005 07:30 > To: users@httpd.apache.org > Subject: [users@httpd] VirtualHost 216.55.162.34:80 > > > Hi > > Still I have problem in Virtucal Host. When ever I am > creating subdomain > then it is writing scripts in httpd.include as below I don't understand what is the problem. Are you using some application to generate httpd.conf? What is going wrong? Please explain exactly what you want to happen and what is wrong. Your config is mostly OK, but I would suggest a few tips: - You don't need to add the port number onto the domain name in ServerName (stjohnsw.thinkquestuganda.org:80 --> stjohnsw.thinkquestuganda.org). - do you have "NameVirtualHost 216.55.162.34:80" somewhere? You need this for name-based VHs. Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > > > ServerName stjohnsw.thinkquestuganda.org:80 > SuexecUserGroup thinkque psacln > ServerAdmin amin@computerland.co.ug > DocumentRoot > /home/httpd/vhosts/thinkquestuganda.org/subdomains/stjohnsw/httpdocs > CustomLog > /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/access_log > combined > ErrorLog > /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/error_log > ScriptAlias /cgi-bin/ > /home/httpd/vhosts/thinkquestuganda.org/subdomains/stjohnsw/cgi-bin/ > > > Now I want when I create subdomain it should create scripts as below; > > > ServerName stjohnsw.thinkquestuganda.org:80 > ServerAlias www.stjohnsw.thinkquestuganda.org > SuexecUserGroup thinkque psacln > ServerAdmin amin@computerland.co.ug > DocumentRoot > /home/httpd/vhosts/thinkquestuganda.org/subdomains/stjohnsw/httpdocs > CustomLog > /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/access_log > combined > ErrorLog > /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/error_log > ScriptAlias /cgi-bin/ > /home/httpd/vhosts/thinkquestuganda.org/subdomains/stjohnsw/cgi-bin/ > > > > What to do so scripts will work fine. > > Thank you, > > Regards > Amin > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27-Feb-2005 > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP > Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > Diese E-mail ist eine private und pers�nliche Kommunikation. Sie hat keinen Bezug zur B�rsen- bzw. Gesch�ftst�tigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le pr�sent e-mail est un message priv� et personnel, sans rapport avec l'activit� boursi�re du Groupe SWX. This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27-Feb-2005 ------=_NextPart_000_01E3_01C520BD.E680B6B0 Content-Type: application/octet-stream; name=httpd.include Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.include" # ATTENTION! # DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER = PLESK # FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE = CUSTOM # MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM = IN THE # FOLLOWING FILE(S): # /home/httpd/vhosts/thinkquestuganda.org/conf/vhost.conf # /home/httpd/vhosts/thinkquestuganda.org/conf/vhost_ssl.conf # = /home/httpd/vhosts/thinkquestuganda.org/subdomains//conf/= vhost.conf ServerName thinkquestuganda.org:443 ServerAlias www.thinkquestuganda.org UseCanonicalName Off SuexecUserGroup thinkque psacln ServerAdmin amin@computerland.co.ug DocumentRoot /home/httpd/vhosts/thinkquestuganda.org/httpsdocs CustomLog = /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/access_ssl_log = combined ErrorLog = /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/error_ssl_log UserDir /home/httpd/vhosts/thinkquestuganda.org/web_users ScriptAlias /cgi-bin/ /home/httpd/vhosts/thinkquestuganda.org/cgi-bin/ Alias /plesk-stat /home/httpd/vhosts/thinkquestuganda.org/statistics/ Alias /webstat = /home/httpd/vhosts/thinkquestuganda.org/statistics/webstat Alias /webstat-ssl = /home/httpd/vhosts/thinkquestuganda.org/statistics/webstat-ssl Alias /ftpstat = /home/httpd/vhosts/thinkquestuganda.org/statistics/ftpstat Alias /anon_ftpstat = /home/httpd/vhosts/thinkquestuganda.org/statistics/anon_ftpstat SSLEngine on SSLVerifyClient none SSLCertificateFile /usr/local/psa/var/certificates/certNE13707 SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On SetHandler perl-script PerlHandler Apache::ASP PerlSetVar Global /tmp php_admin_flag engine on php_admin_value open_basedir = "/home/httpd/vhosts/thinkquestuganda.org/httpsdocs:/tmp" SetHandler python-program PythonHandler mod_python.cgihandler SSLRequireSSL Options +Includes +ExecCGI AddType text/plain .php .php4 .php3 .phtml php_admin_flag engine off AuthType Basic AuthName "Domain statistics" AuthUserFile /home/httpd/vhosts/thinkquestuganda.org/pd/d..plesk-stat require valid-user Alias "/error_docs" = "/home/httpd/vhosts/thinkquestuganda.org/error_docs" ErrorDocument 400 /error_docs/bad_request.html ErrorDocument 401 /error_docs/unauthorized.html ErrorDocument 403 /error_docs/forbidden.html ErrorDocument 404 /error_docs/not_found.html ErrorDocument 500 /error_docs/internal_server_error.html WebAppConnection thinkquestuganda_org_Connection_ssl warp = 216.55.162.34:9008 AddType text/html .exe ServerName thinkquestuganda.org:80 ServerAlias www.thinkquestuganda.org UseCanonicalName Off SuexecUserGroup thinkque psacln ServerAdmin "amin@computerland.co.ug" DocumentRoot /home/httpd/vhosts/thinkquestuganda.org/httpdocs CustomLog = /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/access_log = combined ErrorLog = /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/error_log UserDir /home/httpd/vhosts/thinkquestuganda.org/web_users ScriptAlias /cgi-bin/ /home/httpd/vhosts/thinkquestuganda.org/cgi-bin/ SSLEngine off SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On SetHandler perl-script PerlHandler Apache::ASP PerlSetVar Global /tmp php_admin_flag engine on php_admin_value open_basedir = "/home/httpd/vhosts/thinkquestuganda.org/httpdocs:/tmp" SetHandler python-program PythonHandler mod_python.cgihandler Options +Includes +ExecCGI AddType text/plain .php .php4 .php3 .phtml php_admin_flag engine off AuthType Basic AuthName "Domain statistics" AuthUserFile /home/httpd/vhosts/thinkquestuganda.org/pd/d..plesk-stat require valid-user Alias "/error_docs" = "/home/httpd/vhosts/thinkquestuganda.org/error_docs" ErrorDocument 400 /error_docs/bad_request.html ErrorDocument 401 /error_docs/unauthorized.html ErrorDocument 403 /error_docs/forbidden.html ErrorDocument 404 /error_docs/not_found.html ErrorDocument 500 /error_docs/internal_server_error.html WebAppConnection thinkquestuganda_org_Connection warp = 216.55.162.34:9008 AddType text/html .exe ServerName library.thinkquestuganda.org:80 SuexecUserGroup thinkque psacln ServerAdmin "amin@computerland.co.ug" DocumentRoot = /home/httpd/vhosts/thinkquestuganda.org/subdomains/library/httpdocs CustomLog = /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/access_log = combined ErrorLog = /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/error_log ScriptAlias /cgi-bin/ = /home/httpd/vhosts/thinkquestuganda.org/subdomains/library/cgi-bin/ SSLEngine off SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On SetHandler perl-script PerlHandler Apache::ASP PerlSetVar Global /tmp php_admin_flag engine on php_admin_value open_basedir = "/home/httpd/vhosts/thinkquestuganda.org/subdomains/library/httpdocs:/tmp= " SetHandler python-program PythonHandler mod_python.cgihandler Options +Includes +ExecCGI Alias "/error_docs" = "/home/httpd/vhosts/thinkquestuganda.org/error_docs" ErrorDocument 400 /error_docs/bad_request.html ErrorDocument 401 /error_docs/unauthorized.html ErrorDocument 403 /error_docs/forbidden.html ErrorDocument 404 /error_docs/not_found.html ErrorDocument 500 /error_docs/internal_server_error.html ServerName stjohnsw.thinkquestuganda.org:80 SuexecUserGroup thinkque psacln ServerAdmin "amin@computerland.co.ug" DocumentRoot = /home/httpd/vhosts/thinkquestuganda.org/subdomains/stjohnsw/httpdocs CustomLog = /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/access_log = combined ErrorLog = /home/httpd/vhosts/thinkquestuganda.org/statistics/logs/error_log ScriptAlias /cgi-bin/ = /home/httpd/vhosts/thinkquestuganda.org/subdomains/stjohnsw/cgi-bin/ SSLEngine off SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On SetHandler perl-script PerlHandler Apache::ASP PerlSetVar Global /tmp php_admin_flag engine on php_admin_value open_basedir = "/home/httpd/vhosts/thinkquestuganda.org/subdomains/stjohnsw/httpdocs:/tm= p" SetHandler python-program PythonHandler mod_python.cgihandler Options +Includes +ExecCGI Alias "/error_docs" = "/home/httpd/vhosts/thinkquestuganda.org/error_docs" ErrorDocument 400 /error_docs/bad_request.html ErrorDocument 401 /error_docs/unauthorized.html ErrorDocument 403 /error_docs/forbidden.html ErrorDocument 404 /error_docs/not_found.html ErrorDocument 500 /error_docs/internal_server_error.html ------=_NextPart_000_01E3_01C520BD.E680B6B0 Content-Type: text/plain; x-avg=cert; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: "AVG certification" No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27-Feb-2005 ------=_NextPart_000_01E3_01C520BD.E680B6B0 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org ------=_NextPart_000_01E3_01C520BD.E680B6B0--