Help - Search - Members - Calendar
Full Version: vhost.conf
The Planet Forums > Control Panels > Plesk
enterprisetoday
Hi all,

I'm using plesk 7.5.4 on el3, a load balanced cluster.
Plesk is behaving weirdly with the httpd.include file which is in each domains ~/conf/ directory.

I place all my ServerAlias directives into the vhost.conf file also located in this directory, but strangely enough, some sites do not receive an Include directive for this file in the httpd.include. Many also miss out on error documents. I went through my servers and ticked the correct boxes.

Most of my domains are identical, I have created one template with which I have used to create all domains currently on the system.

Has anybody seen this kind of issue before? I think i've run into some kind of 'gotcha', best to avoid from now on in.

da!!as
alx
change only the vhost.conf file, not the httpd.include file

after you edit vhost.conf you have to run
/usr/local/psa/admin/bin/websrvmng -v -a
so that the httpd files are rebuilt, then restart apache

and from my bitter experiences.. do make backup copies of your previous vhost.conf files because if they do not have the proper format, apache won't restart!
revolution
QUOTE (alx)
do make backup copies of your previous vhost.conf files because if they do not have the proper format, apache won't restart!

backups are a must, of course. it's also a good idea to do the following before an apache restart if you've been playing with any config files:

/usr/sbin/apachectl configtest

that will give you a "Syntax OK" if everything is cool. then you can do a graceful restart with:

/usr/sbin/apachectl graceful
pedrodj
i have created a file called httpd.domainalias.conf for Plesk server alias: i have putted in


ServerName domain.it
ServerAlias *.domain.info, *.domain.net, *.domain.org
DocumentRoot /home/httpd/vhosts/domain/httpdocs/

AddType application/x-httpd-php .php .php4 .php3 .phtml
php_admin_flag engine on



i have included in httpd.conf

Include /etc/httpd/conf/httpd.domainalias.conf

and restarted all (Plesk, httpd)... but when i go to www.domain.info it bring me the server default home page (/home/httpd/vhosts/defaul/htdocs)...

someone can help me ?

thank you all icon_wink.gif
Squire
What are you trying to do?

Plesk will allow you to set up .info domains. Are you trying to alias/park those domains?
pedrodj
samething with the procedure viewed on swsoft home page
----------------

For specific domain you are going to set and alias, you will need to do the following:

1. Enter the home/httpd/domain.tld/conf/


2. Create vhost.conf and vhost_ssl.conf files there and add the required alias records into them:

ServerAlias alias1.domain.tld
ServerAlias alias2.domain.tld



3. In order for the new files to take effect you shoul rebuild Apache configuration with the following command:
# /usr/local/psa/admin/bin/websrvmng --reconfigure-vhost --vhost-name=domain.tld

uffffffffff icon_sad.gif
pedrodj
solved icon_smile.gif

do not user Serveralias alias1.domain.tld, alias2.domain.tld

but each alias on a new line with Serveralias icon_wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.