-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
baseUri is not being used when resolving the url #1418
Comments
If you are using PHP Built-in Web Server, it will work only inside single directory and won't run another project inside another. In case of Apache, here is example how to make working 2 projects, when one is inside another.
|
Hi, It is just or organizing my projects. It is not a project inside a project |
Ah, then this is normal Phalcon behaviour. By default For that you have 3 options:
|
but it is not "Not-Found" issue. the thing is that phalcon thinks it's living in the root directory of apache ( the that's why I had to replace:
with this:
in |
In that case, you need to submit an issue inside https://github.com/phalcon/cphalcon repository, as it is not devtools issue. Because we are starting to speak about Phalcon itself, not devtools ;) |
Probably related - #1403 |
Related - phalcon/cphalcon#14559 |
indeed it is. |
Closing in favour of phalcon/cphalcon#14559 |
baseUri is not being used when resolving the url. Also, the setting in app\config.php is not right (the default value is / ).
Expected and Actual Behavior
baseUri should be treated as directory/ies not as controllers .
so, phalcon thinks that 'phalcons/' is a controller, while it is a directory .
mkdir /var/www/html/phalcons cd /var/www/html/phalcons phalcon project proj1 simple --enable-webtoos curl http://localhost/phalcons/proj1
Details
phalcon info
)php --ri phalcon
)php -v
)https://hub.docker.com/r/deadsoul/apache_phalcon
It happens on windows, ubuntu 18.04 and debian 9
The text was updated successfully, but these errors were encountered: