0

所以我在同一个 ssh 服务器中同时设置了 phpList 和 Codeigniter 项目。

在我的/etc/httpd/conf.d/phplist.conf,我有这个虚拟主机设置:

<VirtualHost *:80>
    ServerName phplist.example.com
    ServerAdmin admin@example.com
    DocumentRoot /var/www/phplist-3.0.5/public_html

    LogLevel warn
    ErrorLog /var/log/httpd/phplist_error.log
    CustomLog /var/log/httpd/phplist_access.log combined
</VirtualHost>

我的 ci-test 上的数据库设置是:

$db['default'] = array(
    'dsn'   => '',
    'hostname' => '*server ip address*',
    'username' => 'root',
    'password' => 'root@999',
    'database' => 'listingapp_db',
    'dbdriver' => 'mysqli',
    'dbprefix' => '',
    'pconnect' => FALSE,
    'db_debug' => (ENVIRONMENT !== 'production'),
    'cache_on' => FALSE,
    'cachedir' => '',
    'char_set' => 'utf8',
    'dbcollat' => 'utf8_general_ci',
    'swap_pre' => '',
    'encrypt' => FALSE,
    'compress' => FALSE,
    'stricton' => FALSE,
    'failover' => array(),
    'save_queries' => TRUE
);

配置设置有:

$config['base_url'] = 'http://server-ip-address/citest/';

$config['index_page'] = '';

当我尝试访问 Web 中的两个项目时,phpList 站点工作正常,但另一方面,我的 Codeigniter 项目给了我一个错误:

Not Found

The requested URL /citest/ was not found on this server.

项目是否在访问方面存在冲突?如何访问我的 ci-test?

4

0 回答 0