किसी तरह मेरी आभासी मेजबान फ़ाइलें काम नहीं कर रहे सीधे मैं नहीं बता सकता क्यों - मुझे यकीन है कि यह सिर्फ मेरे अच्छे-सुबह मस्तिष्क में एक mailfunction है: पीअपाचे वर्चुअल होस्ट काम नहीं कर रहा सही
अभी मैं दो साइटों मिला/etc/apache2/निर्देशिका की तरह में उपलब्ध साइटों के लिए एक प्रतीकात्मक कड़ी के माध्यम से सक्षम:
0 Nov 21 12:24 000-default -> ../sites-available/default
0 Nov 21 14:52 001-site -> ../sites-available/site
मेरी vhosts फ़ाइलों की तरह लग रहे:
डिफ़ॉल्ट
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName (the IP Address from my Server)
ServerAlias (the 2nd IP Address from my Server)
DocumentRoot /var/www/default
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/default>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
साइट
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/site/
ServerName jobbörse-köln.de
ServerAlias www.example.de ww.example.de w.example.de
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/site>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/site-error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/site-access.log combined
</VirtualHost>
किसी तरह जब मैं "example.de" पर जाने के मैं साइट निर्देशिका के बजाय डिफ़ॉल्ट निर्देशिका को मिलता है। यहां तक कि लॉग फाइल:
site-error.log
site-access.log
0 बाइट्स पर रहने ... क्या मैं गलत कर रहा हूँ? मुझे यकीन है कि यह कुछ गूंगा और आसान है ...
आपकी vhost.conf फाइलें कहां स्थित हैं? जब आप अपनी साइट तक पहुंचते हैं तो आप क्या देखते हैं? आपके httpd.conf के बारे में क्या? – Keerthivasan
मेरे vhost फ़ाइलें में स्थित हैं: /etc/apache2/साइटों से उपलब्ध और वे में जुड़े हुए हो /etc/apache2/साइटों सक्षम मेरी apache2.conf में स्थित है/etc/apache2/ जब मैं www.example.de पर जाएं मुझे /var/www/default/ से /var/www/site/ – Kris