#1  
Old 22nd March 2011, 22:08
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default default vhost

I read a lot of post in here about setting the default vhost file of apache but I cannot conclude to anything specific.
So I did this:
I renamed the default file to default.old (in case I need it later) in /etc/apache2/sites-available and I made a symlink of one of my vhost (eg xyz.com.vhost) to default. (ln -s xyz.com.vhost default)

Now I have the default vhost that I want (and not the first available when someone try to access by ip or by unknown subdomain), but I don't know if the above action interfere somehow with ISPConfig.

Does the ISPConfig uses the default vhost (the default file) for some particular reason?
Reply With Quote
Sponsored Links
  #2  
Old 23rd March 2011, 09:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,070
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

Quote:
Does the ISPConfig uses the default vhost (the default file) for some particular reason?
It is used for webmail and phpmyadmin. Changing the default vhost might disable webmail and phpmyadmin and all other webbased software that you might have installed with the package manager of your linux distribution.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd March 2011, 10:04
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default

Ok. So which is the best way to define the default vhost?
For the record, with the above change, I have no problem with webmail and phpmyadmin. I did the change after I have installed them
Reply With Quote
  #4  
Old 24th March 2011, 10:44
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default

I followed your advice and left default untouched.

The trick I did is to make a symbolic link to my desired host:
Code:
ln -s /etc/apache2/sites-enabled/001-mydesired.vhost /etc/apache2/sites-enabled/mydesired.vhost
This vhost comes first and after the 000-default and 000-ispconfig
Reply With Quote
The Following 2 Users Say Thank You to 8omas For This Useful Post:
cbj4074 (29th December 2011), falko (24th March 2011)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 14:51
User creating shoevring Developers' Forum 7 25th July 2010 10:17
amavis: (!!)WARN: all primary virus scanners failed, considering ba jariasca Installation/Configuration 13 20th April 2010 17:34
Admin Program for Virtual Users and Domains Postfix courier etc...(Ubuntu 8.04)? the1rob HOWTO-Related Questions 11 4th August 2009 04:54
Exim MTA dazblade Server Operation 4 16th July 2007 18:42


All times are GMT +2. The time now is 22:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.