PDA

View Full Version : Update Problem



Cr8t1ve
09-01-2007, 01:16 AM
Hi... I updated my server with the custombuild script and everything seemed fine... however, I am now getting a "hey it worked! apache" page instead the the proper websites...

Anyone have any ideas on how to fix?

smtalk
09-01-2007, 01:19 AM
Check /etc/httpd/conf/extra/httpd-vhosts.conf if it has the right IP addresses (used not for your sites, but for hostname). After the changes restart apache.

Cr8t1ve
09-01-2007, 01:34 AM
I checked and it has local and outside ip addresses.... the outside one was incorrect and I changed them... I restarted httpd and I still get the "hey it worked" page...

Any other ideas?

smtalk
09-01-2007, 01:37 AM
If you want - I can take a look at your server and say where is the problem. PM me with your server details.

Cr8t1ve
09-01-2007, 01:49 AM
K I sent it to you....thanks :-)

nobaloney
09-03-2007, 11:05 AM
I get lost when I see posts referring to extra/httpd-vhosts.conf; my systems don't have the extra directory or the file.

I still use customapache. Is this something only in custombuild? If so, what does it do, why is it different, and what are the advantages?

Thanks.

Jeff

smtalk
09-03-2007, 11:11 AM
jlasman, all the config files are listed here:
http://files.directadmin.com/services/custombuild/beta/custombuild/configure/ap2/conf/

For apache 1.3: http://files.directadmin.com/services/custombuild/beta/custombuild/configure/ap1/conf/

extra/httpd-vhosts.conf contains:


#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

##########################################################
# Use name-based virtual hosting. #
# All NameVirtualHost lines are in this file #
# Don't remove this line or apache will generate errors. #
##########################################################
Include /etc/httpd/conf/ips.conf

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost |IP|:80>
ServerAdmin webmaster@localhost
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /var/www/html
ServerName localhost"
ScriptAlias /cgi-bin/ /var/www/cgi-bin/"
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost |IP|:443>
ServerAdmin webmaster@localhost
AliasMatch ^/~([^/]+)(/.*)* "/home/$1/public_html$2"
DocumentRoot /var/www/html
ServerName localhost
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
CustomLog /var/log/httpd/homedir.log homedir

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
</VirtualHost>

nobaloney
09-03-2007, 01:21 PM
Your post doesn't answer any of my questions.

Jeff

smtalk
09-03-2007, 01:31 PM
I get lost when I see posts referring to extra/httpd-vhosts.conf; my systems don't have the extra directory or the file.

Customapache includes it in /etc/httpd/conf/httpd.conf file.


I still use customapache. Is this something only in custombuild? If so, what does it do, why is it different, and what are the advantages?

Yes, only custombuild uses httpd-vhosts.conf file. It's used to set-up the main IP for /var/www/html. Why is it different? It's not different, just seperated from the httpd.conf file (for this reason any 3rd party plugin or custombuild (maybe in the future) can rewrite this file and not the whole httpd.conf).