Support » Fixing WordPress » site.com and site.com/example

  • Resolved rhercules

    (@rhercules)


    Hi,

    site.com and site.com/example
    I am configuring this on my ubuntu server and in the end it says Forbidden.

    What name should i give to file .conf ? example.conf ?
    a2ensite what name i should put here ?
    example ?

    In the file .conf i put

    ServerName site.com/example
    ServerAlias http://www.site.com/example

    I have create a user example and in phpmyadmin the same user example with a DB with same name.
    I have also create the directory example in the root of site.com and put there WP 4.2.4 files.

    So What i miss here and what i am doing wrong ?

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Your config file could have any name. when you enable a site you enable a config file not a site.

    example: a2ensite site.com should be site.com.conf
    example: a2ensite randomname.com should be randomname.com.conf

    what is important is what you have in your config file

    use:

    ServerName site.com
    ServerAlias www.site.com

    you can’t use sub directories like site.com/example
    if site.com/example is a directory in your server use

    DocumentRoot /site.com/example

    Thanks for reply.

    Yes that was my mistake: already put site.com and http://www.site.com and now it works fine. Already install WP but…

    In update it shows a fail:
    Failed to connect to FTP Server
    They are ask for Hostname – i put here the IP of the server ?
    ftp username – what will i put here ?
    ftp password – and here ?

    Never seen this message error.
    (Well i am +/- new on WP)

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘site.com and site.com/example’ is closed to new replies.