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@xxxxxxxxxxxxxxxxxx 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/ <IfModule mod_ssl.c> 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" <Owen.Boyle@xxxxxxx> To: <users@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx] > Sent: Freitag, 4. März 2005 07:30 > To: users@xxxxxxxxxxxxxxxx > 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. > > <VirtualHost 216.55.162.34:80> > ServerName stjohnsw.thinkquestuganda.org:80 > SuexecUserGroup thinkque psacln > ServerAdmin amin@xxxxxxxxxxxxxxxxxx > 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/ > <IfModule mod_ssl.c> > > Now I want when I create subdomain it should create scripts as below; > > <VirtualHost 216.55.162.34:80> > ServerName stjohnsw.thinkquestuganda.org:80 > ServerAlias www.stjohnsw.thinkquestuganda.org > SuexecUserGroup thinkque psacln > ServerAdmin amin@xxxxxxxxxxxxxxxxxx > 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/ > <IfModule mod_ssl.c> > > > 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 <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > 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 <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx -- 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
Attachment:
httpd.include
Description: Binary data
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 <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
![]() |