1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Apache question

Discussion in 'Plesk for Linux - 8.x and Older' started by PedstersPlanet, Nov 10, 2005.

  1. PedstersPlanet

    PedstersPlanet Guest

    Is it possible to make the ServerName to have a www. infront of the domain name by default, and just the domain name as the alias without the www.?
    The reason is that some of my php scripts have keys, these need the www. infront of the ServerName.... I can manually edit the httpd.include file, but if Iadd a sub-domain in Plesk, it reverts back to the non www.......
    Can this be done? In SSH?

  2. PedstersPlanet

    PedstersPlanet Guest

    Is this the wrong forum, or does no-one know or understand my question. :)
  3. ShadowMan@

    ShadowMan@ Guest

    The forum is correct, it is just that Plesk is setup to do it the other way around, there is no easy fix to do the reverse as you wish, other than manually editing the apache files as you have already done.

    And as you have already found out, anytime there are domain/subdomain changes done in Plesk, the apache conf files are overwritten.
  4. PedstersPlanet

    PedstersPlanet Guest

    Thanks..Maybe this could be a future (root user) feature, per domain or globally - .....

    Anyway, thanks again....