Status
Not open for further replies.
17 comments
i'm not sure, if webmin is now able to handel virtual-hosts (in the past, this wasn't possible).
So have you googled? and or checked your logs?

i assume it's possible.
So check your apache-config on /etc/apache2/apache.conf

make sure you have " Include /etc/apache2/sites-enabled/" enabled (without the # at the beginning of the line)
check if your apache-configs are namebased - has a Line starting with "NameServer" in your sites-enabled/*.conf file

edit
okay, it's possible now ^^
 
I don't think i have /etc/apache2/apache.conf

I tired to follow so many tutorials, but i'm not sure if im not following it correctly it it just doesn't work.

---------- Post added at 09:25 AM ---------- Previous post was at 09:03 AM ----------

Is this setup incorrectly?

ServerName localhost

NameVirtualHost *:80

<VirtualHost *>
ServerName maindomain.org
DocumentRoot "/home/maindomain.org/public_html"
<Directory "/home/maindomain.org/public_html">
allow from all
Options -Indexes
AllowOverride All
</Directory>
</VirtualHost>




<VirtualHost *>
DocumentRoot /home/somedomain.org/public_html
<Directory "/home/somedomain.org/public_html">
allow from all
Options +Indexes
</Directory>
ServerAlias somedomain.org www.somedomain.org
ServerName somedomain.org
</VirtualHost>
 
Last edited:
where do you put this config you have posted?

a normal apache-site-config-file will look like this:

Code:
<VirtualHost *:80>
   DocumentRoot       /home/somedomain.org/public_html
   ServerName         somedomain.org
   <Directory  /home/somedomain.org/public_html/>
   AllowOverride      All
   Allow from all
   </Directory>
</VirtualHost>

so yours isn't completely wrong.

i'm wondering where you have got this code-snippet. since afaik
NameVirtualHost *:80
has to be in ports.conf

and
ServerName localhost
doesn't make sense if it's written all alone
 
Its in:
/etc/httpd/conf/httpd.conf
It isn't all written alone, but i just copied from the bottom of the file.

---------- Post added at 10:05 AM ---------- Previous post was at 10:02 AM ----------

I don't get it, I made the changes, but the domain still going to the main one instead of it's own home folder.

---------- Post added at 10:22 AM ---------- Previous post was at 10:05 AM ----------

This is a new server.. .

I don't even have ports.conf or apache.conf
Should I be worried? lol
 
Yeah, I actually do have a site running on there now, I have a few others that should be too, but running in to issues.
:(

I installed the Bind DNS module (grabbing pieces of info here and there), but i failed to config it properly. When I was done, the new site became the main one and the old one redirected to the new one.

almost 11AM, i think i better go to bed, been trying to get this working since yesterday noon.

I'll be back later, thanks for helping me out.

---------- Post added 9th Jul 2013 at 01:05 AM ---------- Previous post was 8th Jul 2013 at 10:52 AM ----------

http://www.webmin.com/vdownload.html

They don't have one for CentOS?
 
I don't have a clean install though. Don't I need a fresh server for this?
Let's ignore that for now.

------

Just 5 mins ago, I got it working, I'm not 100% sure how I did it though.

Now, here the strange part.
I checked my "named.conf" file and it does NOT have any of the new domains I had added on, but yet, everything seems to be working fine.

Should I be worried?
 
Well all named does (dns) is controls subdomains and other records.

If you just have direct domains setup with apache/nginx then it will automaticly translate it correctly.
 
  • The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin virtual server home directory is /home. CGI and PHP scripts run as domain owners will not be executed.
.. your system is not ready for use by Virtualmin.


Any idea how to resolve this issue?

:(
 
Recompile apache with out Suexec or depending on how your setup

rename:

/usr/local/apache/bin/suexec

to:

/usr/local/apache/bin/suexec.disable
 
  • Suexec is enabled in the default template, but the suexec command was not found on your system.
.. your system is not ready for use by Virtualmin.

Where can I change the template? (i have no idea what it's talking about)
 
Code:
apt-get install apache2-suexec-custom
cd /etc/apache2/suexec
vi www-data
replace the line "/var/www" with "/home" (without "" )
restart apache
 
Is it the same for Centos?

I replaced apt-get with yum

# yum install apache2-suexec-custom
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.root.lu
* epel: mirror.muntinternet.net
* extras: centos.mirror.root.lu
* updates: centos.mirror.root.lu
Setting up Install Process
No package apache2-suexec-custom available.
Error: Nothing to do

I also wasn't able to locate any thing under "www-data"
 
Status
Not open for further replies.
Back
Top