![](/img/trans.png)
[英]Codeigniter - Image Upload works on localhost(WAMP) but doesn't work online
[英]wamp server doesn't go online
我在Wamp Server中工作。 今天,我操縱httpd.config以直接連接到目錄。 由於我刪除了此行,因此wamp服務器無法聯機,在更改為先前狀態並重新啟動wamp之后,它仍然處於脫機狀態。 我使用Windows 7和Apache版本2.4.7
<Directory C:\wamp\www\Zend\workspaces\test\public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
你可以試試看嗎?
DocumentRoot“ C:/ wamp / www / Zend / workspaces” ServerName local-portail.com DirectoryIndex index.php #AllowOverride All#全部允許#需要全部授予
或這個
DocumentRoot“ C:/ wamp / www / Zend / workspaces” ServerName local-portail.com DirectoryIndex index.php #AllowOverride All#全部允許#需要全部授予
<IfModule dir_module>
DirectoryIndex index.php
</IfModule>
這是您更改的httpd.conf部分嗎?
<Directory "c:/wamp/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>
如果要使另一個目錄成為目錄根目錄,那么更好的方法是為每個項目創建一個或多個虛擬主機。
請參閱這篇文章,了解如何執行此操作。 忽略標題,它是描述如何設置虛擬主機的文章。 項目鏈接在Wamp Server上不起作用
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.