Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vhost problems

Status
Not open for further replies.

sachav

Programmer
Jan 27, 2003
3
DE
Hi,

I`m currently busy with the configuration of my first Apache.

Here are my configuration-files:
and

may also be useful.

Why does the VirtualHost which is defined in the lines 13-24 of the virthost.conf handle the request for and not the one with the ServerName defined in the lines 47-62)??

Why do I get a "Connection refused" when I enter ein and not the PHPMyAdmin as defined in the lines 28-43?

What do you think of this configuration - especially regarding security?

I`d very happy if someone could take a look at it. I tried a lot of things now, but I just can`t get it to work.

Thank you very much - all the best,

Sacha
 
Hi

Put NameVirtualHost your server IP not "*"
Change <VirtualHosts *> and check your name server resolutión, /etc/hosts

<VirtualHost Your_Server_IP >
DirectoryIndex index.php index.htm index.html
DocumentRoot /var/ <Directory &quot;/var/ Options +FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache/default-error_log
CustomLog /var/log/apache/default-access_log common
</VirtualHost>

##SSL-VirtualHost
##the VirtualHost for SSL-Access to PHPMyAdmin
<VirtualHost 217.160.170.134:443>
SSLEngine on
ServerName DirectoryIndex index.php index.htm index.html
DocumentRoot /var/ <Directory &quot;/var/ Options +FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
CustomLog /var/log/apache/PHPMyAdmin_ssl_access &quot;%h %l %u %t \&quot;%r\&quot; %s %b \&quot;%{Referer}i\&quot; \&quot;%{User-agent}i\&quot;&quot;
ErrorLog /var/log/apache/PHPMyAdmin_ssl_error
SSLCertificateKeyFile /etc/apache/conf/ssl.key/server.key
SSLCertificateFile /etc/apache/conf/ssl.crt/server.crt
</VirtualHost>

##OWNER-VirtualHost
##VirtualHosts of da Webmaster
<VirtualHost ServerName ServerAlias *.unlimitedvision.de
DirectoryIndex index.php index.htm index.html
DocumentRoot /var/ <Directory &quot;/var/ Options +FollowSymLinks +Includes +MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
##Typo3 requires php safe_mode off
php_admin_flag safe_mode Off
</Directory>
ErrorLog /var/log/apache/unlimitedvision.de-error_log
CustomLog /var/log/apache/unlimitedvision.de-access_log common
</VirtualHost>

<VirtualHost ServerName ServerAlias *.euregioklettern.de
DirectoryIndex index.php index.htm index.html
DocumentRoot /var/ <Directory &quot;/var/ Options +FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache/euregioklettern.de-error_log
CustomLog /var/log/apache/euregioklettern.de-access_log common
</VirtualHost>

Saludos:
Lo mio no es el ingles (se nota)
 
ok

I think that yo must declared NameVirtualHost whit ssl port

NameVirtualHost 217.160.170.134:443 Saludos:
Lo mio no es el ingles (se nota)
 
Hi,

I found the error. In the httpd.conf I wrote:

<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>

I copied the IfDefine structure from a SuSE-Linux httpd.conf. It seems that this structure doesn`t work on debian-woody.

I removed the <IfDefine SSL></IfDefine> and left only
Listen 80
Listen 443

that made it work.

Thanks for your support,

Sacha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top