您无权访问此服务器上的/

时间:2017-05-03 21:10:55

标签: apache symfony virtualhost linuxmint

我正在使用linux,我想为我的symfony 3应用程序配置一个虚拟主机。

这是我在/etc/apache2/sites-available/evaluation.conf上的Vhost:

<VirtualHost *:80>
ServerName evaluation.dev
ServerAlias www.evaluation.dev
DocumentRoot /home/sahnoun/InternshipPFE/Dev/systeme_evaluation/web
<Directory /home/sahnoun/InternshipPFE/Dev/systeme_evaluation/web>

 AllowOverride All
    Order Deny,Allow
    Allow from All
</Directory>

ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_access.log combined
</VirtualHost>

我在/ etc / hosts中添加了主机:

127.0.0.1   evaluation.dev

这对我来说没有问题,它会返回这个错误:

  

禁止

     

您无权访问此服务器上的/。   评估.dev端口8的Apache / 2.4.18(Ubuntu)服务器

1 个答案:

答案 0 :(得分:1)

也许你需要宏文件访问权限

{
"name": "LoadFromOnerxSalesInvoicesRaw",
"properties": {
    "description": "Test Deserialize Sales Invoices Raw",
    "activities": [
      {
        "type": "DotNetActivity",
        "typeProperties": {
          "assemblyName": "BICodeActivities.dll",
          "entryPoint": "BICodeActivities.Activities.OneRx.DeserializeSalesInvoiceToLines",
          "packageLinkedService": "biCABlobLS",
          "packageFile": "bi-activities-container/BICodeActivities.zip",
          "extendedProperties": {
            "SliceStart": "$$Text.Format('{0:yyyyMMddHH-mm}', Time.AddMinutes(SliceStart, 0))"
          }
        },
        "inputs": [
          {
            "name": "o-staging-onerx-salesInvoices"
          }
        ],
        "outputs": [
          {
            "name": "o-staging-onerx-salesInvoicesLines"
          }
        ],
        "policy": {
          "timeout": "00:30:00",
          "concurrency": 2,
          "retry": 3
        },
        "scheduler": {
          "frequency": "Day",
          "interval": 1
        },
        "name": "DeserializeSalesInvoiceToLines",
        "linkedServiceName": "biBatchLS"
      },
      {
        "type": "DotNetActivity",
        "typeProperties": {
          "assemblyName": "BICodeActivities.dll",
          "entryPoint": "BICodeActivities.Activities.OneRx.DeserializeSalesInvoiceToDiscounts",
          "packageLinkedService": "biCABlobLS",
          "packageFile": "bi-activities-container/BICodeActivities.zip",
          "extendedProperties": {
            "SliceStart": "$$Text.Format('{0:yyyyMMddHH-mm}', Time.AddMinutes(SliceStart, 0))"
          }
        },
        "inputs": [
          {
            "name": "o-staging-onerx-salesInvoices"
          }
        ],
        "outputs": [
          {
            "name": "o-staging-onerx-salesInvoicesDiscounts"
          }
        ],
        "policy": {
          "timeout": "00:30:00",
          "concurrency": 2,
          "retry": 3
        },
        "scheduler": {
          "frequency": "Day",
          "interval": 1
        },
        "name": "DeserializeSalesInvoiceToDiscounts",
        "linkedServiceName": "biBatchLS"
      }
    ],
    "start": "2017-04-26T09:20:00Z",
    "end": "2018-04-26T22:30:00Z"
}

将VirtualHost文件从/etc/apache2/sites-available/evaluation.conf移至/etc/apache2/sites-enabled/evaluation.conf