का कारण बनता है मैंने BradPPresents.com से BradP.com से फ़ाइलों और डेटाबेस की प्रतिलिपि बनाई है।.HTACCESS फ़ाइल आंतरिक सर्वर त्रुटि
.htaccess फ़ाइल को जूमला द्वारा "सुंदर यूआरएल" सक्षम करने के बाद पृष्ठों को ठीक से प्रदर्शित करने के लिए आवश्यक है।
आप देख सकते हैं कि डेटाबेस और सभी कनेक्शन http://bradp.com/index.php पर काम कर रहे हैं, हालांकि http://bradp.com/home.html काम नहीं करता है क्योंकि यह URL को पार्स करने के लिए .htaccess फ़ाइल पर निर्भर करता है।
मैंने bradpources.com (वर्तमान में ठीक काम कर रहे) से समान htaccess फ़ाइल की प्रतिलिपि बनाई है और फ़ाइल मौजूद होने पर मुझे "आंतरिक सर्वर त्रुटि" मिलती है। जैसे ही इसे हटा दिया जाता है, त्रुटि दूर हो जाती है, लेकिन निश्चित रूप से साइट आवश्यकतानुसार काम नहीं करती है।
मुझे उम्मीद है कि कोई मेरे लिए इस पर थोड़ा प्रकाश डाल सकता है।
यहाँ .htaccess फाइल
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|\.aspx|\.asp|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#max files size restrictions
php_value upload_max_filesize 20M
php_value post_max_size 20M
है यहाँ अपाचे से साइट विन्यास फाइल है।
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/nick/public_html/bradp.com/html/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/nick/public_html/bradp.com/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
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 /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
यह अनिवार्य रूप से कुछ परिवर्तनों के साथ डिफ़ॉल्ट फ़ाइल है।
मैं वास्तव में किसी भी मदद की सराहना करता हूं; धन्यवाद एक लाख, निक
पूछने से पहले कि आपको लॉग फ़ाइलों में एक नज़र डालना चाहिए था। – Gumbo
यह भी जांचने के लिए नहीं सोचा था। धन्यवाद। –