PDA

View Full Version : Need help configuring virtuals on Apache


wilsonpaul
04-12-2002, 11:56 AM
I am setting up some virtuals on my server and I want to run cgi from any directory. Following what is already in the httpd.conf file, heres what I added... is this correct?<br /><br />-- start ---<br /><br />ScriptAlias /cgi-bin/ "/data/mydomain.com/cgi-bin/"<br /><br />&lt;Directory "/data/mydomain.com/cgi-bin"&gt;<br /> AllowOverride AuthConfig<br /> Options ExecCGI<br /> Order allow,deny<br /> Allow from all<br /> SetHandler cgi-script<br /> &lt;/Directory&gt;<br /><br />&lt;VirtualHost ***.***.***.**&gt;<br /> ServerAdmin me@mydomain.com<br /> ServerName <a href="http://www.mydomain.com" target="_blank">www.mydomain.com</a><br /> ServerAlias mydomain.com<br /> DocumentRoot /data/mydomain.com<br /> &lt;Directory "/data/mydomain.com"&gt;<br /> AllowOverride All<br /> Options ExecCGI <br /> Order allow,deny<br /> Allow from all<br /> SetHandler cgi-script<br /> &lt;/Directory&gt;<br /> ScriptAlias /cgi-bin/ "/data/mydomain.com/cgi-bin/"<br /> ErrorDocument 404 <a href="http://www.myotherdomain.com" target="_blank">http://www.myotherdomain.com</a><br /> ErrorLog logs/mydomain.com-error_log<br /> TransferLog logs/mydomain.com-transfer_log<br /> &lt;/VirtualHost&gt;<br /><br />-- end --<br /><br />will the above put my logs in /data/mydomain.com/logs ?<br /><br />Also, I want to use sub-domains. How and where do I add a dns wildcard?<br /><br />Thanks.

SexySites
04-12-2002, 11:29 PM
i think you'll need to change the dns wildcards in another area...try installing a program like webmin.com this should help you out a lot <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" /> <br /><br />laters,<br />Chris

darksoft
04-13-2002, 02:45 AM
</font><blockquote><font size="1" face="Verdana, Arial">quote:</font><hr /><font size="2" face="Verdana, Arial">Originally posted by Cash News:<br /><strong>I am setting up some virtuals on my server and I want to run cgi from any directory. Following what is already in the httpd.conf file, heres what I added... is this correct?<br /><br />-- start ---<br /><br />ScriptAlias /cgi-bin/ "/data/mydomain.com/cgi-bin/"<br /><br />&lt;Directory "/data/mydomain.com/cgi-bin"&gt;<br /> AllowOverride AuthConfig<br /> Options ExecCGI<br /> Order allow,deny<br /> Allow from all<br /> SetHandler cgi-script<br /> &lt;/Directory&gt;<br /><br />&lt;VirtualHost ***.***.***.**&gt;<br /> ServerAdmin me@mydomain.com<br /> ServerName <a href="http://www.mydomain.com" target="_blank">www.mydomain.com</a><br /> ServerAlias mydomain.com<br /> DocumentRoot /data/mydomain.com<br /> &lt;Directory "/data/mydomain.com"&gt;<br /> AllowOverride All<br /> Options ExecCGI <br /> Order allow,deny<br /> Allow from all<br /> SetHandler cgi-script<br /> &lt;/Directory&gt;<br /> ScriptAlias /cgi-bin/ "/data/mydomain.com/cgi-bin/"<br /> ErrorDocument 404 <a href="http://www.myotherdomain.com" target="_blank">http://www.myotherdomain.com</a><br /> ErrorLog logs/mydomain.com-error_log<br /> TransferLog logs/mydomain.com-transfer_log<br /> &lt;/VirtualHost&gt;<br /><br />-- end --<br /><br />will the above put my logs in /data/mydomain.com/logs ?<br /><br />Also, I want to use sub-domains. How and where do I add a dns wildcard?<br /><br />Thanks.</strong></font><hr /></blockquote><font size="2" face="Verdana, Arial">No, it will put in the normal logs directory, usually /var/log/httpd/. Specify the full path for where you want your log files to go.