Skip to content
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

URL Not supported #21

Open
banetbi opened this issue Sep 19, 2019 · 6 comments
Open

URL Not supported #21

banetbi opened this issue Sep 19, 2019 · 6 comments

Comments

@banetbi
Copy link

banetbi commented Sep 19, 2019

I have osticket 1.12.2 running on php 7.2.19 and apache2. I was running 1.9.12 and had cas authentication working fine. Once I upgraded, I only get the message "URL not supported" when I try to use CAS authentication. Any idea as to what the issue could be?

@kevinoconnor7
Copy link
Owner

I cannot reproduce this in my demo environment. What URL do you end up on when you get this error?

@banetbi
Copy link
Author

banetbi commented Sep 24, 2019

Sorry for the late response, I missed the email notification. I get https://libsys.swem.wm.edu/api/auth/ext?ticket= as the resulting url

Thanks

@banetbi
Copy link
Author

banetbi commented Sep 24, 2019

Here is my virtualhost config in case it is relevant

ServerName libsys.swem.wm.edu

  ## Vhost docroot
  DocumentRoot "/var/www/libsys.swem.wm.edu/public_html"

  ## Directories, there should at least be a declaration for /var/www/libsys.swem.wm.edu/public_html

  <Directory "/var/www/libsys.swem.wm.edu/public_html">
    Options +IncludesNOEXEC
    AllowOverride None
    Require all granted
  </Directory>

  <Location "/api">
    Require all granted
    # Rewrite rules
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.*/api)
    RewriteRule ^(.*)$ %1/http.php/$1 [L]
  </Location>

  ## Logging
  ErrorLog "/var/log/apache2/libsys.swem.wm.edu_error.log"
  ServerSignature Off
  CustomLog "/var/log/apache2/libsys.swem.wm.edu_access.log" combined
  SetEnvIf X-Forwarded-Proto https HTTPS=on
  php_value include_path ".:/var/www/libsys.swem.wm.edu:/usr/share/php:/usr/share/pear"
  php_admin_value error_reporting 2039
  php_admin_value open_basedir .:/var/www/libsys.swem.wm.edu:/usr/share/php:/usr/share/pear:/var/www/temp:/tmp
  php_admin_value upload_max_filesize 125M

@kevinoconnor7
Copy link
Owner

FYI: I edited your comment to remove the ticket, since it could be used to login.

@kevinoconnor7
Copy link
Owner

I don't see anything wrong with your config and you are indeed ending up at the correct address. My only guess is that your RewriteRule isn't working correctly, but I don't see any reason why it wouldn't be.

@caguest
Copy link

caguest commented Nov 10, 2020

Realize that this is old, but had the same issue after a hosting server move. Installing/Enabling mod_rewrite in Apache corrected the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants